From 84ca37f0350f59d6448128d9f7042c15c5ee288b Mon Sep 17 00:00:00 2001 From: kwadronaut Date: Fri, 4 Oct 2019 15:28:47 +0200 Subject: Upstream api change Shapeshifter-dispatcher refactored how to deal with the arguments, they want iatMode now not iat-mode. --- scripts/gen-shapeshifter-state.py | 4 ++-- scripts/simplevpn.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gen-shapeshifter-state.py b/scripts/gen-shapeshifter-state.py index 1418e23..241c780 100755 --- a/scripts/gen-shapeshifter-state.py +++ b/scripts/gen-shapeshifter-state.py @@ -14,7 +14,7 @@ import pysodium import binascii BRIDGE_PREAMBLE = "Bridge obfs4 : cert=" -BRIDGE_END = " iat-mode=0" +BRIDGE_END = " iatMode=0" def generate(statedir): @@ -41,7 +41,7 @@ def generate(statedir): 'private-key': tostr(priv_hex), 'public-key': tostr(pub_hex), 'drbg-seed': tostr(binascii.b2a_hex(drbg_seed)), - 'iat-mode': 0})) + 'iatMode': 0})) cert = base64.b64encode(node_id + public) print("CERT:", cert) diff --git a/scripts/simplevpn.py b/scripts/simplevpn.py index 97892ed..02f4cb1 100755 --- a/scripts/simplevpn.py +++ b/scripts/simplevpn.py @@ -51,7 +51,7 @@ def patchObfs4Cert(config, cert): transport, _, _ = options if transport == "obfs4": opts['cert'] = cert - opts['iat-mode'] = "0" + opts['iatMode'] = "0" options.append(opts) return config -- cgit v1.2.3