Skip to content

Commit

Permalink
Upgrade to new tuna version due to incompatibility change
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Jul 16, 2020
1 parent bd754fb commit fdfc717
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 78 deletions.
2 changes: 2 additions & 0 deletions bin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func main() {
to := flag.String("to", "", "to address (nkn address or ip:port)")
useTuna := flag.Bool("tuna", false, "use tuna instead of nkn client for nkn session")
tunaCountry := flag.String("country", "", `tuna service node allowed country code, separated by comma, e.g. "US" or "US,CN"`)
tunaMaxPrice := flag.String("tuna-max-price", "0.01", "tuna max price in unit of NKN/MB")
mtu := flag.Int("mtu", 0, "ncp session mtu")
verbose := flag.Bool("v", false, "show logs on dialing/accepting connection")

Expand Down Expand Up @@ -48,6 +49,7 @@ func main() {

tsConfig = &ts.Config{
TunaIPFilter: &tuna.IPFilter{Allow: locations},
TunaMaxPrice: *tunaMaxPrice,
}
}

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/nknorg/nkn-tunnel
go 1.13

require (
github.com/nknorg/ncp-go v0.0.0-20200406215949-844c0615f43e
github.com/nknorg/nkn-sdk-go v1.2.6
github.com/nknorg/nkn-tuna-session v0.0.0-20200509012218-ccd40afe003e
github.com/nknorg/tuna v0.0.0-20200509010839-b8e4fdb699e6
github.com/nknorg/ncp-go v1.0.1
github.com/nknorg/nkn-sdk-go v1.3.0
github.com/nknorg/nkn-tuna-session v0.0.0-20200716030938-96a9604ca2d3
github.com/nknorg/tuna v0.0.0-20200714222241-1d03b8a3603c
)
Loading

0 comments on commit fdfc717

Please sign in to comment.