diff options
Diffstat (limited to 'pkg/bitmask')
-rw-r--r-- | pkg/bitmask/bitmask.go | 1 | ||||
-rw-r--r-- | pkg/bitmask/init.go | 2 |
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 |