Moving armon/go-socks5 to forked repo with additional changes

This commit is contained in:
serj
2025-09-23 21:39:33 +03:00
parent 4298d972a9
commit f0eb61962e
5 changed files with 42 additions and 6 deletions
+2 -3
View File
@@ -2,8 +2,8 @@ package main
import (
"log"
"net"
"os"
"github.com/armon/go-socks5"
"github.com/caarlos0/env/v6"
)
@@ -45,7 +45,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
{{/*
// Set IP whitelist
if len(cfg.AllowedIPs) > 0 {
whitelist := make([]net.IP, len(cfg.AllowedIPs))
@@ -54,7 +54,6 @@ func main() {
}
server.SetIPWhitelist(whitelist)
}
*/}}
log.Printf("Start listening proxy service on port %s\n", cfg.Port)
if err := server.ListenAndServe("tcp", ":"+cfg.Port); err != nil {