Method
RemovePort
(port int, protocol string)
Source from the content-addressed store, hash-verified
| 110 | } |
| 111 | |
| 112 | func (this *Firewalld) RemovePort(port int, protocol string) error { |
| 113 | if !this.isReady { |
| 114 | return nil |
| 115 | } |
| 116 | var cmd = executils.NewTimeoutCmd(10*time.Second, this.exe, "--remove-port="+types.String(port)+"/"+protocol) |
| 117 | this.pushCmd(cmd, "") |
| 118 | return nil |
| 119 | } |
| 120 | |
| 121 | func (this *Firewalld) RemovePortRangePermanently(portRange [2]int, protocol string) error { |
| 122 | var port = this.PortRangeString(portRange, protocol) |
Callers
nothing calls this directly
Tested by
no test coverage detected