summaryrefslogtreecommitdiff
path: root/pkg/vpn/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-10-08 11:55:15 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:20 +0100
commitef683e13aaefebd9cd1f267d5339e1ef574c42d0 (patch)
treea1e8460fe872fa72750e285101fbdf7d70b92531 /pkg/vpn/main.go
parent49755a3271a19ab8e441406c7095e283a2d6241e (diff)
[feat] pass udp flag to bitmask-root
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r--pkg/vpn/main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go
index 0671877..0b1d316 100644
--- a/pkg/vpn/main.go
+++ b/pkg/vpn/main.go
@@ -39,6 +39,7 @@ type Bitmask struct {
shapes *shapeshifter.ShapeShifter
certPemPath string
openvpnArgs []string
+ udp bool
failed bool
}
@@ -54,7 +55,7 @@ func Init() (*Bitmask, error) {
if err != nil {
return nil, err
}
- b := Bitmask{tempdir, bonafide.Gateway{}, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil, "", []string{}, false}
+ b := Bitmask{tempdir, bonafide.Gateway{}, bonafide.Gateway{}, statusCh, nil, bf, launch, "", nil, "", []string{}, false, false}
b.launch.firewallStop()
/*
@@ -107,3 +108,8 @@ func (b *Bitmask) NeedsCredentials() bool {
func (b *Bitmask) DoLogin(username, password string) (bool, error) {
return b.bonafide.DoLogin(username, password)
}
+
+func (b *Bitmask) UseUDP(udp bool) error {
+ b.udp = udp
+ return nil
+}