From 27c5a2bea69376d0bc70d5e242106644fe24c42b Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 27 Mar 2012 23:11:03 -0300 Subject: [PATCH] Changed the network interface rules, the correct behavior is for each host that has its source-network-interface equal to "default" (e.g. source-network-interface=default) is supposed to use the global default-source-network-interface item. --- src/main.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5a92c82..6f0b9e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -123,9 +123,9 @@ void init_pingers( string destination_address = host->get_address(); uint16_t destination_port = host->get_port(); string host_network_interface = host->get_source_network_interface(); - string network_interface = ( default_network_interface.empty() ) ? - host_network_interface : - default_network_interface; + string network_interface = ( host_network_interface == "default" ) ? + default_network_interface : + host_network_interface; PingProtocolList protocol_list = host->get_ping_protocol_list(); int ping_interval_in_sec = host->get_interval_in_sec(); PingSchedulerItem scheduler( -- 1.7.1