mirror of
https://github.com/luscis/openlan.git
synced 2025-10-07 17:40:54 +08:00
fix: conn is not active after restart ipsec.
This commit is contained in:
@@ -211,7 +211,7 @@ func (v *Switch) GetPort(listen string) string {
|
||||
func (v *Switch) openPorts() {
|
||||
port := v.GetPort(v.cfg.Listen)
|
||||
UdpPorts := []string{"500", "4500", "8472", "4789", port}
|
||||
TcpPorts := []string{"10000", port}
|
||||
TcpPorts := []string{port}
|
||||
if v.cfg.Http != nil {
|
||||
TcpPorts = append(TcpPorts, v.GetPort(v.cfg.Http.Listen))
|
||||
}
|
||||
|
Reference in New Issue
Block a user