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 8ae9aa2428
)
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user