Accessing pkg repository via proxy

From: Andreas Nilsson <andrnils_at_gmail.com>
Date: Wed, 29 Dec 2021 15:02:44 UTC
Hello,

I'm away for a Christmas vacation, but I want to fetch some packages I've
built on my home server.

I've ssh access to a machine on my home network, so I'm attempting to use a
ssh as a socks5 proxy, ie I do
ssh -D5000 -n home

I can use fetch to get packagesite.txz like so:
SOCKS5_PROXY=127.0.0.1:5000 fetch
http://192.168.1.20/FreeBSD-base/FreeBSD:14:amd64/latest/packagesite.txz
packagesite.txz                                         28 kB 5376 kBps
 00s

but setting PKG_ENV in my config file for my local repository does not work.

  pkg_env: {
    socks5_proxy: "127.0.0.1:5000",
  }

does not work. Pkg just sits there and nothing happens. Is this mode of
operating not supported by pkg?

Best regards
Andreas