Merge pull request #12 from lorenzopicoli/patch-2

Improve log when using custom config file path
master
nitred 9 months ago committed by GitHub
commit edcf6c75f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -167,7 +167,7 @@ class MTUFinder(object):
"""
self.__validate_conf_file()
msg = f"Setting MTU to {self.current_mtu} in /etc/wireguard/wg0.conf"
msg = f"Setting MTU to {self.current_mtu} in {self.conf_file}"
print(f"{msg:<50s}", end=": ")
process = subprocess.Popen(
["sed", "-i", f"s/MTU.*/MTU = {self.current_mtu}/", f"{self.conf_file}"],

Loading…
Cancel
Save