mirror of
https://github.com/max-moser/network-manager-wireguard.git
synced 2025-02-20 06:46:21 +03:00
Write DNS settings to the file for wg-quick
This commit is contained in:
parent
a52cc4101b
commit
132df13d9f
@ -1242,6 +1242,10 @@ create_config_string (NMConnection *connection, GError **error)
|
|||||||
args_write_line(f, NMV_WG_TAG_POST_DOWN, "=", post_down);
|
args_write_line(f, NMV_WG_TAG_POST_DOWN, "=", post_down);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dns){
|
||||||
|
args_write_line(f, NMV_WG_TAG_DNS, "=", dns);
|
||||||
|
}
|
||||||
|
|
||||||
args_write_line(f, NMV_WG_TAG_PEER);
|
args_write_line(f, NMV_WG_TAG_PEER);
|
||||||
args_write_line(f, NMV_WG_TAG_PUBLIC_KEY, "=", public_key);
|
args_write_line(f, NMV_WG_TAG_PUBLIC_KEY, "=", public_key);
|
||||||
args_write_line(f, NMV_WG_TAG_ENDPOINT, "=", endpoint);
|
args_write_line(f, NMV_WG_TAG_ENDPOINT, "=", endpoint);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user