IsLocal returns true if the command in v2 is LOCAL or the transport in v1 is UNKNOWN, i.e. when no address information is expected, false otherwise.
()
| 22 | // IsLocal returns true if the command in v2 is LOCAL or the transport in v1 is UNKNOWN, |
| 23 | // i.e. when no address information is expected, false otherwise. |
| 24 | func (pvc ProtocolVersionAndCommand) IsLocal() bool { |
| 25 | return LOCAL == pvc |
| 26 | } |
| 27 | |
| 28 | // IsProxy returns true if the command in v2 is PROXY or the transport in v1 is not UNKNOWN, |
| 29 | // i.e. when valid local/remote address and port information is expected, false otherwise. |