summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2019-07-22 17:47:08 +0200
committerRuben Pollan <meskio@sindominio.net>2019-08-16 22:58:46 +0200
commit1de7bb124a5e502945712ef34f924ca4d1d0ca45 (patch)
tree346cc319f8dc3013fc9b9e0654d19e0720d388e7 /cmd
parent35aaba1e0da53aed44a5741ca9a3a1e2de21baf5 (diff)
[feat] be able to use obfs4
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bitmask-vpn/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/bitmask-vpn/main.go b/cmd/bitmask-vpn/main.go
index d7f12df..0f5759e 100644
--- a/cmd/bitmask-vpn/main.go
+++ b/cmd/bitmask-vpn/main.go
@@ -52,6 +52,7 @@ func main() {
conf := systray.ParseConfig()
selectGateway := flag.Bool("select-gateway", false, "Enable gateway selection")
+ obfs4 := flag.Bool("obfs4", false, "Use obfs4 to obfuscate the traffic is available in the provider")
disableAutostart := flag.Bool("disable-autostart", false, "Disable the autostart for the next run")
startVPN := flag.String("start-vpn", "", "Start the vpn in turned 'on' or 'off'")
versionFlag := flag.Bool("version", false, "Version of the bitmask-systray")
@@ -70,6 +71,9 @@ func main() {
if *selectGateway {
conf.SelectGateway = *selectGateway
}
+ if *obfs4 {
+ conf.Obfs4 = *obfs4
+ }
if *disableAutostart {
conf.DisableAustostart = *disableAutostart
}