summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-09-15 23:15:20 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2021-09-15 23:15:32 +0200
commit1bf89e0aedbd05b24579e7cdc326182d55ac10d2 (patch)
tree23d63c5db5d144c3892eac72f7d096dace3d7e43 /src/device.c
parent6e73af25c5008b4330ad14b5e22b94fff8771eb9 (diff)
global: support changing transport socketfeature/socketdev
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index b8c2390..3bbd0e8 100644
--- a/src/device.c
+++ b/src/device.c
@@ -54,7 +54,7 @@ static int wg_open(struct net_device *dev)
#endif
mutex_lock(&wg->device_update_lock);
- ret = wg_socket_init(wg, wg->incoming_port);
+ ret = wg_socket_init(wg, wg->incoming_port, wg->socketdev_index);
if (ret < 0)
goto out;
list_for_each_entry(peer, &wg->peer_list, peer_list) {