fix: start ipsec tun not log.

This commit is contained in:
Daniel Ding
2024-06-22 21:42:03 +08:00
parent 97099b4881
commit 94f7e32992
9 changed files with 54 additions and 26 deletions

View File

@@ -3,11 +3,12 @@ package libol
import (
"crypto/tls"
"crypto/x509"
"golang.org/x/net/websocket"
"io/ioutil"
"net"
"net/http"
"time"
"golang.org/x/net/websocket"
)
type wsConn struct {
@@ -101,7 +102,7 @@ func (t *WebServer) Accept() {
MinInt: 5 * time.Second,
MaxInt: 30 * time.Second,
}
promise.Done(func() error {
promise.Do(func() error {
if t.webCfg.Cert == nil {
if err := t.listener.ListenAndServe(); err != nil {
Error("WebServer.Accept on %s: %s", t.address, err)