Skip to content

Commit 8fb632c

Browse files
authoredApr 23, 2023
Merge pull request #3 from tonutils/test
v0.2.0
2 parents cae4acb + ea72cda commit 8fb632c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
 

‎cmd/proxy/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (h Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
5353

5454
log.Println("request:", request.Method, request.Host, request.RequestURI)
5555

56-
writer.Header().Set("Ton-Reverse-Proxy", "TonUtils Reverse Proxy v0.0.4")
56+
writer.Header().Set("Ton-Reverse-Proxy", "Tonutils Reverse Proxy v0.2.0")
5757
h.h.ServeHTTP(writer, request)
5858
}
5959

@@ -108,7 +108,6 @@ func main() {
108108

109109
proxy := httputil.NewSingleHostReverseProxy(u)
110110
s := rldphttp.NewServer(ed25519.NewKeyFromSeed(cfg.PrivateKey), dhtClient, Handler{proxy})
111-
println("IP", cfg.ExternalIP, net.ParseIP(cfg.ExternalIP).String())
112111
s.SetExternalIP(net.ParseIP(cfg.ExternalIP).To4())
113112

114113
addr, err := rldphttp.SerializeADNLAddress(s.Address())

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/mdp/qrterminal/v3 v3.0.0
77
github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3
8-
github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76
8+
github.com/xssnick/tonutils-go v1.7.0
99
)
1010

1111
require (

‎go.sum

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ github.com/xssnick/tonutils-go v1.5.3-0.20230220100828-dbce647061b4 h1:xptXTCkdt
5959
github.com/xssnick/tonutils-go v1.5.3-0.20230220100828-dbce647061b4/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g=
6060
github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76 h1:6W7QanatmrKV4JvoBndRC97VS8k4HKzB1io/RW3oMcM=
6161
github.com/xssnick/tonutils-go v1.5.3-0.20230224103525-a740f2b2aa76/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g=
62+
github.com/xssnick/tonutils-go v1.6.2 h1:K8Kp2pQ9n8i+73gCepcdf0GJnTK826ZxGWjQk4l0i4I=
63+
github.com/xssnick/tonutils-go v1.6.2/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g=
64+
github.com/xssnick/tonutils-go v1.6.3-0.20230423122435-b62f87f2b31f h1:tTasbzy5XTyWPGh0kY5LBcpcIMinof0aMxrM+qDMxJA=
65+
github.com/xssnick/tonutils-go v1.6.3-0.20230423122435-b62f87f2b31f/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g=
66+
github.com/xssnick/tonutils-go v1.7.0 h1:Zhmupzicy3Hf8afCnhYj+ev9g+pR9nGc18a6fLd0NiI=
67+
github.com/xssnick/tonutils-go v1.7.0/go.mod h1:wH8ldhLueyfXW15r3MyaIq9YzA+8bzvL6UMU2BLp08g=
6268
golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 h1:S25/rfnfsMVgORT4/J61MJ7rdyseOZOyvLIrZEZ7s6s=
6369
golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
6470
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

0 commit comments

Comments
 (0)