diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 2533a5b02..7cfed0c55 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -403,7 +403,7 @@ def verify(openvpn): if not exists: random = SystemRandom() totp_secret = ''.join(random.choice(secret_chars) for _ in range(16)) - fp.write("{0} otp totp:sha1:base32:{1}::xxx *\n".format(client, totp_secret)) + fp.write(f'{client} otp totp:sha1:base32:{totp_secret}::xxx *\n') f.seek(0) fp.seek(0) |