diff options
Diffstat (limited to 'pkg/backend')
-rw-r--r-- | pkg/backend/actions.go | 5 | ||||
-rw-r--r-- | pkg/backend/api.go | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/pkg/backend/actions.go b/pkg/backend/actions.go index 1860b09..9e0941b 100644 --- a/pkg/backend/actions.go +++ b/pkg/backend/actions.go @@ -24,9 +24,8 @@ func getGateway() string { return ctx.bm.GetCurrentGateway() } -// TODO return bool? -func useTransport(transport string) { - err := ctx.bm.UseTransport(transport) +func setTransport(t string) { + err := ctx.bm.SetTransport(t) if err != nil { log.Println(err) } diff --git a/pkg/backend/api.go b/pkg/backend/api.go index e96c65b..53800b3 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -79,8 +79,8 @@ func UseAutomaticGateway() { } } -func UseTransport(label string) { - ctx.bm.UseTransport(label) +func SetTransport(label string) { + ctx.bm.SetTransport(label) } func GetTransport() *C.char { |