From cb1a83c740106877726f9c2302d986380ee0a99e Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Fri, 7 Feb 2025 23:02:45 -0500 Subject: [PATCH] Add settable options --- Makefile | 20 ++++++++++---------- lib/core/types.go | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index d3fa2ee..eeac076 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ doc: checklist find lib cmd -type d -exec $(HERE)/doc.sh {} \; checklist: - find . -name '*.go' -exec grep --color -C 1 -Hn 'panic("unimplemented")' {} \; + find . -name '*.go' -exec grep --color -C 1 -Hn 'panic("unimplemented")' {} \; 2> /dev/null 1> CHECKLIST.md mobile: go install golang.org/x/mobile/cmd/gomobile@latest @@ -20,12 +20,12 @@ bindSetupMobile: mobile go get -u golang.org/x/mobile/bind mobileLibs: - gomobile bind -target=android ./lib/tcp/client - gomobile bind -target=android ./lib/tcp/server - gomobile bind -target=android ./lib/udp/client - gomobile bind -target=android ./lib/udp/server - gomobile bind -target=android ./lib/irc/client - gomobile bind -target=android ./lib/irc/server - gomobile bind -target=android ./lib/http/client - gomobile bind -target=android ./lib/http/server - gomobile bind -target=android ./lib/socks/client \ No newline at end of file + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/tcp/client + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/tcp/server + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/udp/client + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/udp/server + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/irc/client + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/irc/server + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/http/client + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/http/server + gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/socks/client \ No newline at end of file diff --git a/lib/core/types.go b/lib/core/types.go index 962a481..4bb7f76 100644 --- a/lib/core/types.go +++ b/lib/core/types.go @@ -32,6 +32,8 @@ type I2PTunnel interface { Target() string // Get the tunnel's options Options() map[string]string + // Set the tunnel's options + SetOptions(map[string]string) error // Get the tunnel's status Status() I2PTunnelStatus // Get the tunnel's error message