summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-05-31 02:34:21 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-06-01 12:34:07 +0200
commit3fdbb895b8372caa080044cade00f2de6b00ce91 (patch)
treed7415f43414a42135ed7dde190a1d66cf2501acc /pkg/bitmask
parent00be891d3b0cb401e642a5331aedcc399641b8ef (diff)
[feat] obfs4 selectable from gui
Diffstat (limited to 'pkg/bitmask')
-rw-r--r--pkg/bitmask/bitmask.go1
-rw-r--r--pkg/bitmask/init.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go
index b430808..364312e 100644
--- a/pkg/bitmask/bitmask.go
+++ b/pkg/bitmask/bitmask.go
@@ -36,7 +36,6 @@ type Bitmask interface {
GetCurrentLocation() string
GetCurrentCountry() string
IsManualLocation() bool
- UseTransport(transport string) error
NeedsCredentials() bool
DoLogin(username, password string) (bool, error)
}
diff --git a/pkg/bitmask/init.go b/pkg/bitmask/init.go
index b6b41b4..ab40fed 100644
--- a/pkg/bitmask/init.go
+++ b/pkg/bitmask/init.go
@@ -109,7 +109,7 @@ func InitializeBitmask(conf *config.Config) (Bitmask, error) {
func setTransport(b Bitmask, conf *config.Config) error {
if conf.Obfs4 {
log.Printf("Use transport Obfs4")
- err := b.UseTransport("obfs4")
+ err := b.SetTransport("obfs4")
if err != nil {
log.Printf("Error setting transport: %v", err)
return err