fix: conn is not active after restart ipsec.

This commit is contained in:
Daniel Ding
2024-06-08 12:02:19 +08:00
parent 6575af730e
commit e8d4cc09aa
5 changed files with 72 additions and 58 deletions

View File

@@ -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))
}