I think we probably need a new Slirp release (4.8.0) and a switch statement here instead, right?
So that we can preserve the behavior for 4.7.0? Signed-off-by: Peter Delevoryas <p...@fb.com> --- net/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/slirp.c b/net/slirp.c index 8679be6444..75e5ccafd9 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -617,7 +617,7 @@ static int net_slirp_init(NetClientState *peer, const char *model, s = DO_UPCAST(SlirpState, nc, nc); - cfg.version = SLIRP_CHECK_VERSION(4,7,0) ? 4 : 1; + cfg.version = SLIRP_CHECK_VERSION(4, 7, 0) ? 5 : 1; cfg.restricted = restricted; cfg.in_enabled = ipv4; cfg.vnetwork = net; -- 2.30.2