VirtualBox

Changeset 35577 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jan 16, 2011 4:16:19 PM (14 years ago)
Author:
vboxsync
Message:

Main/NAT: adds protocol comparison in unique rule validator. (vbox/8094).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/NATEngineImpl.cpp

    r35535 r35577  
    291291                            tr("A NAT rule of this name already exists"));
    292292        if (   r.strHostIP == Utf8Str(aBindIp)
    293             && r.u16HostPort == aHostPort)
     293            && r.u16HostPort == aHostPort
     294            && r.proto == aProto)
    294295            return setError(E_INVALIDARG,
    295296                            tr("A NAT rule for this host port and this host IP already exists"));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette