Skip to content

Commit

Permalink
remove note as the code has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
palainp committed Dec 31, 2024
1 parent 3bc0199 commit 763a3de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dispatcher.ml
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,10 @@ struct
Lwt.return_unit)

(** Connect to a new client's interface and listen for incoming frames and firewall rule changes. *)
let add_vif get_ts { Dao.ClientVif.domid; device_id } dns_client dns_servers
let add_vif get_ts vif dns_client dns_servers
~client_ip ~router ~cleanup_tasks qubesDB =
let open Lwt.Syntax in
let { Dao.ClientVif.domid; device_id } = vif in
let* backend = Netback.make ~domid ~device_id in
Log.info (fun f ->
f "Client %d (IP: %s) ready" domid (Ipaddr.V4.to_string client_ip));
Expand Down Expand Up @@ -403,8 +404,6 @@ struct
(function Lwt.Canceled -> Lwt.return_unit | e -> Lwt.fail e)
in
Cleanup.on_cleanup cleanup_tasks (fun () -> Lwt.cancel listener);
(* NOTE(dinosaure): [qubes_updater] and [listener] can be forgotten, our [cleanup_task]
will cancel them if the client is disconnected. *)
Lwt.pick [ qubesdb_updater; listener ]

(** A new client VM has been found in XenStore. Find its interface and connect to it. *)
Expand Down

0 comments on commit 763a3de

Please sign in to comment.