MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / RemovePort

Method RemovePort

internal/firewalls/firewall_firewalld.go:112–119  ·  view source on GitHub ↗
(port int, protocol string)

Source from the content-addressed store, hash-verified

110}
111
112func (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
121func (this *Firewalld) RemovePortRangePermanently(portRange [2]int, protocol string) error {
122 var port = this.PortRangeString(portRange, protocol)

Callers

nothing calls this directly

Calls 2

pushCmdMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected