summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py2
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)