diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-03-27 15:34:26 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-03-28 14:35:59 +0100 |
| commit | ed187c353dffb0362941e1612d41307e7bff1783 (patch) | |
| tree | ced3acc56ce98403d624192f0a9e75566a6d54ae | |
| parent | 72e716245cd0acac8c8db7a70628284f869c7691 (diff) | |
| download | passt-ed187c353dffb0362941e1612d41307e7bff1783.tar passt-ed187c353dffb0362941e1612d41307e7bff1783.tar.gz passt-ed187c353dffb0362941e1612d41307e7bff1783.tar.bz2 passt-ed187c353dffb0362941e1612d41307e7bff1783.tar.lz passt-ed187c353dffb0362941e1612d41307e7bff1783.tar.xz passt-ed187c353dffb0362941e1612d41307e7bff1783.tar.zst passt-ed187c353dffb0362941e1612d41307e7bff1783.zip | |
conf: Remove redundant warning when SO_BINDTODEVICE is unavailable
conf_ports() has logic to warn if -[TU] auto is specified but we can't use
SO_BINDTODEVICE. However, this is redundant with similar logic in
conf_ports_range_except(). The latter will be triggered both for an
explicit -[TU] auto and when it's invoked as a default option, so keep that
one and drop the one in conf_ports().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
| -rw-r--r-- | conf.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -249,12 +249,6 @@ static void conf_ports(const struct ctx *c, char optname, const char *optarg, if (c->mode != MODE_PASTA) die("'auto' port forwarding is only allowed for pasta"); - if ((optname == 'T' || optname == 'U') && c->no_bindtodevice) { - warn( -"'-%c auto' enabled without unprivileged SO_BINDTODEVICE", optname); - warn( -"Forwarding from addresses other than 127.0.0.1 will not work"); - } *mode = FWD_MODE_AUTO; return; } |
