summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/simplevpn.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/simplevpn.py b/scripts/simplevpn.py
index d3db8b5..ead834d 100755
--- a/scripts/simplevpn.py
+++ b/scripts/simplevpn.py
@@ -49,11 +49,17 @@ def patchObfs4Cert(config, cert):
transport, _, _ = options
if transport == "obfs4":
opts['cert'] = cert
- opts['iat-mode'] = 0
+ opts['iat-mode'] = "0"
options.append(opts)
return config
+def dictToStr(d):
+ for k, v in d.items():
+ d[k] = str(v)
+ return d
+
+
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("provider_config")
@@ -75,4 +81,4 @@ if __name__ == "__main__":
print(t.render(
locations=config.locations,
gateways=config.gateways,
- openvpn=config.openvpn))
+ openvpn=dictToStr(config.openvpn)))