mirror of
https://github.com/luscis/openlan.git
synced 2025-10-18 15:00:39 +08:00
fix: start ipsec tun not log.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user