Changeset 33830 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 8, 2010 11:28:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r33825 r33830 444 444 if (*ch == 0) \ 445 445 { \ 446 return errorSyntax(USAGE_CONTROLVM, 447 "Missing or Invalid argument to '%s'", \446 return errorSyntax(USAGE_CONTROLVM, \ 447 "Missing or invalid argument to '%s'", \ 448 448 a->argv[1]); \ 449 449 } \ … … 478 478 else if (RTStrICmp(strProto, "tcp") == 0) 479 479 proto = NATProtocol_TCP; 480 else 481 { 482 return errorSyntax(USAGE_CONTROLVM, 483 "Wrong rule proto '%s' specified -- only 'udp' and 'tcp' are allowed.", 484 strProto); 485 } 480 486 CHECK_ERROR(engine, AddRedirect(Bstr(strName).raw(), proto, Bstr(strHostIp).raw(), 481 487 RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(), RTStrToUInt16(strGuestPort)));
Note:
See TracChangeset
for help on using the changeset viewer.