Skip to content

Commit

Permalink
Merge pull request #3 from tonutils/test
Browse files Browse the repository at this point in the history
v0.2.0
  • Loading branch information
xssnick authored Apr 23, 2023
2 parents cae4acb + ea72cda commit 8fb632c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 8fb632c

Please sign in to comment.