add --allow-loopback for docker, bot and creator app

This commit is contained in:
kulikov0 committed 2026-09-18 22:08:55 +02:00
1 parent 94feaa4a53
commit 2f366b1128
18 files changed
+77 -21

No files matched your search

+2
View File
@@ -646,9 +646,11 @@ func main() {
upstreamPass := flag.String("upstream-pass", "", "upstream SOCKS5 password")
debugFlag := flag.Bool("debug", false, "verbose debug logging")
allowPrivate := flag.Bool("allow-private-dst", false, "let the joiner reach private/internal addresses through this creator")
allowLoopback := flag.Bool("allow-loopback", false, "let the joiner reach the creator's own loopback through this creator")
flag.Parse()
common.Debug = *debugFlag
common.AllowPrivateDst = *allowPrivate
common.AllowLoopbackDst = *allowLoopback
var readBuf int
var maxDCBuf uint64