diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 6714efb..2df3d6e 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -53,7 +53,7 @@ func (h Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) { log.Println("request:", request.Method, request.Host, request.RequestURI) - writer.Header().Set("Ton-Reverse-Proxy", "TonUtils Reverse Proxy v0.0.4") + writer.Header().Set("Ton-Reverse-Proxy", "Tonutils Reverse Proxy v0.2.0") h.h.ServeHTTP(writer, request) } @@ -108,7 +108,6 @@ func main() { proxy := httputil.NewSingleHostReverseProxy(u) s := rldphttp.NewServer(ed25519.NewKeyFromSeed(cfg.PrivateKey), dhtClient, Handler{proxy}) - println("IP", cfg.ExternalIP, net.ParseIP(cfg.ExternalIP).String()) s.SetExternalIP(net.ParseIP(cfg.ExternalIP).To4()) addr, err := rldphttp.SerializeADNLAddress(s.Address()) diff --git a/go.mod b/go.mod index 656a1e5..0b566e2 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/mdp/qrterminal/v3 v3.0.0 github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 - github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76 + github.com/xssnick/tonutils-go v1.7.0 ) require ( diff --git a/go.sum b/go.sum index c8725af..056a2bd 100644 --- a/go.sum +++ b/go.sum @@ -59,6 +59,12 @@ github.com/xssnick/tonutils-go v1.5.3-0.20230220100828-dbce647061b4 h1:xptXTCkdt github.com/xssnick/tonutils-go v1.5.3-0.20230220100828-dbce647061b4/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g= github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76 h1:6W7QanatmrKV4JvoBndRC97VS8k4HKzB1io/RW3oMcM= github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g= +github.com/xssnick/tonutils-go v1.6.2 h1:K8Kp2pQ9n8i+73gCepcdf0GJnTK826ZxGWjQk4l0i4I= +github.com/xssnick/tonutils-go v1.6.2/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g= +github.com/xssnick/tonutils-go v1.6.3-0.20230423122435-b62f87f2b31f h1:tTasbzy5XTyWPGh0kY5LBcpcIMinof0aMxrM+qDMxJA= +github.com/xssnick/tonutils-go v1.6.3-0.20230423122435-b62f87f2b31f/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g= +github.com/xssnick/tonutils-go v1.7.0 h1:Zhmupzicy3Hf8afCnhYj+ev9g+pR9nGc18a6fLd0NiI= +github.com/xssnick/tonutils-go v1.7.0/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g= golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 h1:S25/rfnfsMVgORT4/J61MJ7rdyseOZOyvLIrZEZ7s6s= golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=