Skip to content

Commit a39ea09

Browse files
author
Tyler Lubeck
committed
Disconnect the socket before removing it from the filter rules
attempts to fix docker/for-mac/issues/#1374
1 parent a06c975 commit a39ea09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hostnet/mux.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ module Make (Netif: Mirage_net_lwt.S) = struct
6767
let remove t rule =
6868
Log.debug (fun f ->
6969
f "removing switch port for %s" (Ipaddr.V4.to_string rule));
70+
let (_:unit io) = Netif.disconnect t.netif in
7071
t.rules <- RuleMap.remove rule t.rules
7172

7273
let callback t buf =

0 commit comments

Comments
 (0)