refactor: rename and clarify peer config print statement

Renamed the 'chimpman_config' variable to 'peer_config' for clarity, and updated the print statement to more accurately reflect the content being displayed. This improves code readability and eliminates the use of ambiguous terminology.

No changes to functionality.
This commit is contained in:
Kumi 2024-07-18 17:50:36 +02:00
parent 2d2ec33a9c
commit 1aa3932555
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -391,7 +391,7 @@ def main(provider, location, server_type):
listen_port = config["wireguard"]["listen_port"]
persistent_keepalive = config["wireguard"]["peer_persistent_keepalive"]
chimpman_config = f"""
peer_config = f"""
[Peer]
PublicKey = {public_key}
PresharedKey = {preshared_key}
@ -400,8 +400,8 @@ Endpoint = [{server_ip}]:{listen_port}
PersistentKeepalive = {persistent_keepalive}
"""
print("Chimpman Wireguard Configuration:")
print(chimpman_config)
print("Wireguard Configuration:")
print(peer_config)
# Run the main function with parsed arguments