Skip to content

Commit b68cf9b

Browse files
committed
Merge pull request #11 from robhoes/master
Do signal xapi when an IP address is removed
2 parents 135f4a1 + f401c60 commit b68cf9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

networkd/network_monitor_thread.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ let ip_watcher () =
263263
let rec loop () =
264264
let line = input_line in_channel in
265265
(* Do not send events for link-local IPv6 addresses, and removed IPs *)
266-
if String.has_substr line "inet" && not (String.has_substr line "inet6 fe80") &&
267-
not (String.has_substr line "Deleted") then begin
266+
if String.has_substr line "inet" && not (String.has_substr line "inet6 fe80") then begin
268267
(* Ignore changes for the next second, since they usually come in bursts,
269268
* and signal only once. *)
270269
Thread.delay 1.;

0 commit comments

Comments
 (0)