-
Notifications
You must be signed in to change notification settings - Fork 2
constraint.NetIsTCP
marrow16 edited this page Oct 22, 2022
·
4 revisions
Check that string value is a valid resolvable TCP (v4 or v6) address
isTCP
Field | Type | Description |
---|---|---|
V4Only |
bool | if set, allows only TCP v4 |
V6Only |
bool | if set, allows only TCP v6 |
DisallowLoopback |
bool | if set, disallows loopback addresses |
DisallowPrivate |
bool | if set, disallows private addresses |
Message |
string | the violation message to be used if the constraint fails. If empty, the default message is used |
Stop |
bool | when set to true, Stop prevents further validation checks on the property if this constraint fails |
Note: Setting both V4Only
and V6Only
to true will cause this constraint to always fail!