diff options
Diffstat (limited to 'net/spoofdpi/files')
| -rw-r--r-- | net/spoofdpi/files/modules.txt | 41 | ||||
| -rw-r--r-- | net/spoofdpi/files/pkg-message.in | 6 | ||||
| -rw-r--r-- | net/spoofdpi/files/spoofdpi.in | 4 | ||||
| -rw-r--r-- | net/spoofdpi/files/spoofdpi.toml.sample | 38 |
4 files changed, 69 insertions, 20 deletions
diff --git a/net/spoofdpi/files/modules.txt b/net/spoofdpi/files/modules.txt index 48c505de7ef7..363d89b25ba8 100644 --- a/net/spoofdpi/files/modules.txt +++ b/net/spoofdpi/files/modules.txt @@ -5,6 +5,14 @@ github.com/BurntSushi/toml/internal # github.com/davecgh/go-spew v1.1.1 ## explicit github.com/davecgh/go-spew/spew +# github.com/gabriel-vasile/mimetype v1.4.10 +## explicit; go 1.21 +# github.com/go-playground/locales v0.14.1 +## explicit; go 1.17 +# github.com/go-playground/universal-translator v0.18.1 +## explicit; go 1.18 +# github.com/go-playground/validator/v10 v10.28.0 +## explicit; go 1.24.0 # github.com/google/gopacket v1.1.19 ## explicit; go 1.12 github.com/google/gopacket @@ -15,6 +23,8 @@ github.com/google/gopacket/pcap github.com/jackpal/gateway # github.com/kr/pretty v0.1.0 ## explicit +# github.com/leodido/go-urn v1.4.0 +## explicit; go 1.18 # github.com/mattn/go-colorable v0.1.13 ## explicit; go 1.15 github.com/mattn/go-colorable @@ -33,6 +43,8 @@ github.com/rs/zerolog github.com/rs/zerolog/internal/cbor github.com/rs/zerolog/internal/json github.com/rs/zerolog/log +# github.com/samber/lo v1.52.0 +## explicit; go 1.18 # github.com/stretchr/objx v0.5.2 ## explicit; go 1.20 github.com/stretchr/objx @@ -41,13 +53,16 @@ github.com/stretchr/objx github.com/stretchr/testify/assert github.com/stretchr/testify/assert/yaml github.com/stretchr/testify/mock -# github.com/urfave/cli/v3 v3.5.0 +github.com/stretchr/testify/require +# github.com/urfave/cli/v3 v3.6.1 ## explicit; go 1.22 github.com/urfave/cli/v3 -# golang.org/x/mod v0.18.0 -## explicit; go 1.18 +# golang.org/x/crypto v0.42.0 +## explicit; go 1.24.0 +# golang.org/x/mod v0.27.0 +## explicit; go 1.23.0 golang.org/x/mod/semver -# golang.org/x/net v0.38.0 +# golang.org/x/net v0.43.0 ## explicit; go 1.23.0 golang.org/x/net/bpf golang.org/x/net/internal/iana @@ -55,19 +70,21 @@ golang.org/x/net/internal/socket golang.org/x/net/ipv4 golang.org/x/net/ipv6 golang.org/x/net/route -# golang.org/x/sync v0.12.0 -## explicit; go 1.23.0 +# golang.org/x/sync v0.17.0 +## explicit; go 1.24.0 golang.org/x/sync/errgroup -# golang.org/x/sys v0.31.0 -## explicit; go 1.23.0 +# golang.org/x/sys v0.36.0 +## explicit; go 1.24.0 golang.org/x/sys/unix golang.org/x/sys/windows -# golang.org/x/tools v0.22.0 -## explicit; go 1.19 +# golang.org/x/text v0.29.0 +## explicit; go 1.24.0 +# golang.org/x/tools v0.36.0 +## explicit; go 1.23.0 golang.org/x/tools/go/gcexportdata -golang.org/x/tools/go/internal/packagesdriver golang.org/x/tools/go/packages golang.org/x/tools/go/types/objectpath +golang.org/x/tools/go/types/typeutil golang.org/x/tools/internal/aliases golang.org/x/tools/internal/event golang.org/x/tools/internal/event/core @@ -78,7 +95,7 @@ golang.org/x/tools/internal/gocommand golang.org/x/tools/internal/packagesinternal golang.org/x/tools/internal/pkgbits golang.org/x/tools/internal/stdlib -golang.org/x/tools/internal/tokeninternal +golang.org/x/tools/internal/typeparams golang.org/x/tools/internal/typesinternal golang.org/x/tools/internal/versions # gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 diff --git a/net/spoofdpi/files/pkg-message.in b/net/spoofdpi/files/pkg-message.in index 2c70f131080e..a102654f3bf3 100644 --- a/net/spoofdpi/files/pkg-message.in +++ b/net/spoofdpi/files/pkg-message.in @@ -34,4 +34,10 @@ You can edit the config via being as root or adding your user to the ${PORTNAME} Config locations are: $SPOOFDPI_CONFIG environment variable, ${ETCDIR}/${PORTNAME}.toml, $XDG_CONFIG_HOME/${PORTNAME}/${PORTNAME}.toml and $HOME/.config/${PORTNAME}/${PORTNAME}.toml EOM } +{ type: upgrade + maximum_version: "1.2.0" + message: << EOM +The whole configuration file has changed, see the documentation for more details. I've updated the sample config in the port. +EOM +} ] diff --git a/net/spoofdpi/files/spoofdpi.in b/net/spoofdpi/files/spoofdpi.in index 7c2beb0fc533..9eeedd64b8b2 100644 --- a/net/spoofdpi/files/spoofdpi.in +++ b/net/spoofdpi/files/spoofdpi.in @@ -10,7 +10,7 @@ # spoofdpi (default empty). # spoofdpi_user (str): User to run spoofdpi as. Default # to "%%USER%%" created by the port. -# spoofdpi_log (path): Console log file (default /dev/null). +# spoofdpi_log (path): Console log file (default /var/log/spoofdpi.log or set to /dev/null to omit). . /etc/rc.subr @@ -33,7 +33,7 @@ load_rc_config "${name}" eval "${rcvar}=\${${rcvar}:-'NO'}" eval "_args=\${${name}_args:-''}" eval "_user=\${${name}_user:-'%%USER%%'}" -eval "_log=\${${name}_log:-/dev/null}" +eval "_log=\${${name}_log:-/var/log/${name}.log}" pidfile="/var/run/${name}.pid" diff --git a/net/spoofdpi/files/spoofdpi.toml.sample b/net/spoofdpi/files/spoofdpi.toml.sample index 3c1af2a7e542..36ce94dbded7 100644 --- a/net/spoofdpi/files/spoofdpi.toml.sample +++ b/net/spoofdpi/files/spoofdpi.toml.sample @@ -1,11 +1,37 @@ -dns-addr = "1.1.1.1" -dns-port = "53" +[general] + +# Available values are debug, trace, info, warn, error, and disabled. (default: "info") +log-level = "info" + +# Don't print banner +silent = true + +# This option is currently only supported on macOS. +system-proxy = false + +[server] # If you want to run SpoofDPI remotely (e.g., on a physically separated machine), then you should set this value # to 0.0.0.0. Otherwise, it is recommended to leave this option as default. -listen-addr = "127.0.0.1" +listen-addr = "127.0.0.1:8080" + +[dns] + +# available options: udp/https/system (default: "udp") +mode = "https" + +# DNS address and port number +# this is used when dns-mode is set to udp. +addr = "8.8.8.8:53" + +# This is used when dns-mode is set to https. +https-url = "https://dns.google/dns-query" + +# Filters DNS queries by record type (A for IPv4, AAAA for IPv6). +# Available values are "ipv4", "ipv6", and "all". +# If your Internet Service Provider (ISP) doesn't support IPv6, it is recommended to set this option to "ipv4" for stability. +qtype = "all" -# Port to listen on. -listen-port = "8080" +# If true, DNS records will be cached to improve performance and reduce latency. +cache = false -doh-endpoint = "https://dns.google/dns-query" |
