mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Use public.pem instead of public.key for iperf3
This commit is contained in:
parent
7e096c834a
commit
37440b4a2d
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ def config():
|
|||
glorytun_udp_client_ip = '10.255.255.2'
|
||||
available_vpn = ["glorytun-tcp", "glorytun-udp"]
|
||||
|
||||
if os.path.isfile('/etc/iperf3/public.key'):
|
||||
with open('/etc/iperf3/public.key',"rb") as iperfkey_file:
|
||||
if os.path.isfile('/etc/iperf3/public.pem'):
|
||||
with open('/etc/iperf3/public.pem',"rb") as iperfkey_file:
|
||||
iperf_keyb = base64.b64encode(iperfkey_file.read())
|
||||
iperf3_key = iperf_keyb.decode('utf-8')
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue