mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-25 16:53:19 +01:00
edit default conf
This commit is contained in:
parent
18d019725c
commit
c42289f4bd
@ -62,9 +62,9 @@ func getExampleEdgeConf(templatePath string) mtypes.EdgeConfig {
|
|||||||
ListenPort: 0,
|
ListenPort: 0,
|
||||||
LogLevel: mtypes.LoggerInfo{
|
LogLevel: mtypes.LoggerInfo{
|
||||||
LogLevel: "error",
|
LogLevel: "error",
|
||||||
LogTransit: true,
|
LogTransit: false,
|
||||||
LogControl: true,
|
LogControl: true,
|
||||||
LogNormal: true,
|
LogNormal: false,
|
||||||
LogInternal: true,
|
LogInternal: true,
|
||||||
LogNTP: true,
|
LogNTP: true,
|
||||||
},
|
},
|
||||||
|
@ -484,6 +484,7 @@ func edge_post_nodeinfo(w http.ResponseWriter, r *http.Request) {
|
|||||||
httpobj.http_PeerIPs[PubKey].LocalIPv4 = client_report.LocalV4s
|
httpobj.http_PeerIPs[PubKey].LocalIPv4 = client_report.LocalV4s
|
||||||
httpobj.http_PeerIPs[PubKey].LocalIPv6 = client_report.LocalV6s
|
httpobj.http_PeerIPs[PubKey].LocalIPv6 = client_report.LocalV6s
|
||||||
httpobj.http_PeerState[PubKey].httpPostCount.Store(client_PostCount + 1)
|
httpobj.http_PeerState[PubKey].httpPostCount.Store(client_PostCount + 1)
|
||||||
|
httpobj.http_PeerState[PubKey].LastSeen.Store(time.Now())
|
||||||
|
|
||||||
applied_pones := make([]mtypes.PongMsg, 0, len(client_report.Pongs))
|
applied_pones := make([]mtypes.PongMsg, 0, len(client_report.Pongs))
|
||||||
for _, pong_msg := range client_report.Pongs {
|
for _, pong_msg := range client_report.Pongs {
|
||||||
|
@ -91,11 +91,11 @@ func getExampleSuperConf(templatePath string) mtypes.SuperConfig {
|
|||||||
API_Prefix: "/eg_api",
|
API_Prefix: "/eg_api",
|
||||||
LogLevel: mtypes.LoggerInfo{
|
LogLevel: mtypes.LoggerInfo{
|
||||||
LogLevel: "normal",
|
LogLevel: "normal",
|
||||||
LogTransit: true,
|
LogTransit: false,
|
||||||
LogControl: true,
|
LogControl: true,
|
||||||
LogNormal: false,
|
LogNormal: false,
|
||||||
LogInternal: true,
|
LogInternal: true,
|
||||||
LogNTP: false,
|
LogNTP: true,
|
||||||
},
|
},
|
||||||
RePushConfigInterval: 30,
|
RePushConfigInterval: 30,
|
||||||
PeerAliveTimeout: 70,
|
PeerAliveTimeout: 70,
|
||||||
|
Loading…
Reference in New Issue
Block a user