Proto returns pr's network protocol.
()
| 246 | |
| 247 | // Proto returns pr's network protocol. |
| 248 | func (pr PortRange) Proto() IPProtocol { |
| 249 | if pr.proto == protoZero { |
| 250 | return "" |
| 251 | } |
| 252 | return pr.proto.Value() |
| 253 | } |
| 254 | |
| 255 | // IsZero reports whether pr is the zero value. |
| 256 | func (pr PortRange) IsZero() bool { |