Skip to content

Commit

Permalink
fix netmask/gateway settings in rs-dds-config
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jul 25, 2024
1 parent 24d8da4 commit 1105cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/dds/dds-config/rs-dds-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down

0 comments on commit 1105cb6

Please sign in to comment.