Skip to content

Commit

Permalink
fix: open raweth socket on the correct network interface.
Browse files Browse the repository at this point in the history
Previously the socket was always opened on the interface defined by _ZP_RAWETH_CFG_INTERFACE.
  • Loading branch information
gmartin82 committed Feb 2, 2024
1 parent 2d9d6e3 commit 370f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/raweth/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit 370f09d

Please sign in to comment.