From 1105cb6141f7c36527f02a0938ff311a86be38ef Mon Sep 17 00:00:00 2001 From: Eran Date: Wed, 24 Jul 2024 10:24:22 +0300 Subject: [PATCH] fix netmask/gateway settings in rs-dds-config --- tools/dds/dds-config/rs-dds-config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dds/dds-config/rs-dds-config.cpp b/tools/dds/dds-config/rs-dds-config.cpp index 253e556fcc..2b5959ecce 100644 --- a/tools/dds/dds-config/rs-dds-config.cpp +++ b/tools/dds/dds-config/rs-dds-config.cpp @@ -284,9 +284,9 @@ try if( ip_arg.isSet() ) requested.configured.ip = ip_address( ip_arg.getValue(), rsutils::throw_if_not_valid ); if( mask_arg.isSet() ) - requested.configured.netmask = ip_address( ip_arg.getValue(), rsutils::throw_if_not_valid ); + requested.configured.netmask = ip_address( mask_arg.getValue(), rsutils::throw_if_not_valid ); if( gateway_arg.isSet() ) - requested.configured.gateway = ip_address( ip_arg.getValue(), rsutils::throw_if_not_valid ); + requested.configured.gateway = ip_address( gateway_arg.getValue(), rsutils::throw_if_not_valid ); if( usb_first_arg.isSet() + eth_first_arg.isSet() + dynamic_priority_arg.isSet() > 1 ) throw std::invalid_argument( "--usb-first, --eth-first, and --dynamic-priority are mutually exclusive" ); if( usb_first_arg.isSet() )