Changeset 34992 in vbox for trunk/src/VBox/Main/NATEngineImpl.cpp
- Timestamp:
- Dec 13, 2010 11:36:38 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68815
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/NATEngineImpl.cpp
r33952 r34992 287 287 { 288 288 r = it->second; 289 if ( it->first == name 290 || ( r.strHostIP == Utf8Str(aBindIp) 291 && r.u16HostPort == aHostPort)) 292 { 293 return E_INVALIDARG; 294 } 289 if (it->first == name) 290 return setError(E_INVALIDARG, 291 tr("A NAT rule of this name does already exist")); 292 if ( r.strHostIP == Utf8Str(aBindIp) 293 && r.u16HostPort == aHostPort) 294 return setError(E_INVALIDARG, 295 tr("A NAT rule for this host port and this host IP does already exist")); 295 296 } 296 297
Note:
See TracChangeset
for help on using the changeset viewer.