From 9bb6f8c01cd5e205ae2274ec8f0096172fffa88d Mon Sep 17 00:00:00 2001 From: Geoff Martin Date: Mon, 5 Feb 2024 11:10:29 +0000 Subject: [PATCH] fix: open raweth socket on the correct network interface. (#341) Previously the socket was always opened on the interface defined by _ZP_RAWETH_CFG_INTERFACE. --- src/transport/raweth/link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/raweth/link.c b/src/transport/raweth/link.c index a2df3da6d..8eb42abc9 100644 --- a/src/transport/raweth/link.c +++ b/src/transport/raweth/link.c @@ -104,7 +104,7 @@ static int8_t _z_f_link_open_raweth(_z_link_t *self) { self->_socket._raweth._interface = _ZP_RAWETH_CFG_INTERFACE; } // Open raweth link - return _z_open_raweth(&self->_socket._raweth._sock, _ZP_RAWETH_CFG_INTERFACE); + return _z_open_raweth(&self->_socket._raweth._sock, self->_socket._raweth._interface); } static int8_t _z_f_link_listen_raweth(_z_link_t *self) { return _z_f_link_open_raweth(self); }