From 5900a56029c42d6205fe5f10b140e8587eb63a0a Mon Sep 17 00:00:00 2001 From: Oleg Baranov Date: Mon, 6 Mar 2023 22:21:22 +0400 Subject: [PATCH 1/2] Version header upd --- cmd/proxy/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 6714efb..6794199 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.1.2") 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()) From ea72cda57b57f6e00467abc5ee97adaa8be869e1 Mon Sep 17 00:00:00 2001 From: Oleg Baranov Date: Sun, 23 Apr 2023 22:48:39 +0400 Subject: [PATCH 2/2] Updated tonutils-go to v1.7, DHT improvements --- cmd/proxy/main.go | 2 +- go.mod | 2 +- go.sum | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 6794199..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.1.2") + writer.Header().Set("Ton-Reverse-Proxy", "Tonutils Reverse Proxy v0.2.0") h.h.ServeHTTP(writer, request) } 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=