summaryrefslogtreecommitdiff
path: root/examples/python/gi
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
commit6452d2d0e54cbb4a4acb380d5f8a4a76326bb700 (patch)
tree9a35fd2061db2b46708678333600cd9627d873ec /examples/python/gi
parent76828262299729e718924d5c14a69cfdc5cf48fa (diff)
downloadNetworkManager-6452d2d0e54cbb4a4acb380d5f8a4a76326bb700.tar.gz
libnm: change nm_wireguard_peer_set_public_key() API to allow validation
This is an API break since 1.16-rc1. Similar to previous commit. (cherry picked from commit 7962653918fbfd66b549d389a1cb2cf96ae0d3eb)
Diffstat (limited to 'examples/python/gi')
-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 308e4c74ca..9ee61c7dc4 100755
--- a/examples/python/gi/nm-wg-set
+++ b/examples/python/gi/nm-wg-set
@@ -343,7 +343,7 @@ def do_set(nm_client, conn, argv):
else:
peer_idx = None
peer = NM.WireGuardPeer()
- peer.set_public_key(public_key)
+ peer.set_public_key(public_key, True)
wg_peer_is_valid(peer, 'public key "%s" is invalid' % (public_key))
peer_remove = False
idx += 2