summaryrefslogtreecommitdiff
path: root/examples/python
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-03-01 15:52:19 +0100
committerThomas Haller <thaller@redhat.com>2019-03-07 22:22:39 +0100
commitf617d5e8b4c421f0812d4fc9bf6780cc51a74d90 (patch)
tree5d849810e1f1080e2d4d31863de9eb8a771e596a /examples/python
parent6452d2d0e54cbb4a4acb380d5f8a4a76326bb700 (diff)
downloadNetworkManager-f617d5e8b4c421f0812d4fc9bf6780cc51a74d90.tar.gz
libnm: change nm_wireguard_peer_set_endpoint() API to allow validation
This is an API break since 1.16-rc1. Similar to previous commit. (cherry picked from commit 8ae9aa2428c10aafb837c692fb39bfd04ef4235c)
Diffstat (limited to 'examples/python')
-rwxr-xr-xexamples/python/gi/nm-wg-set2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/gi/nm-wg-set b/examples/python/gi/nm-wg-set
index 9ee61c7dc4..32097f83f3 100755
--- a/examples/python/gi/nm-wg-set
+++ b/examples/python/gi/nm-wg-set
@@ -369,7 +369,7 @@ def do_set(nm_client, conn, argv):
idx += 2
continue
if peer and argv[idx] == 'endpoint':
- peer.set_endpoint(argv_get_one(argv, idx + 1, None, idx))
+ peer.set_endpoint(argv_get_one(argv, idx + 1, None, idx), True)
idx += 2
continue
if peer and argv[idx] == 'persistent-keepalive':