edit default conf

This commit is contained in:
Kusakabe Si 2021-12-05 22:32:04 +00:00
parent 18d019725c
commit c42289f4bd
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -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 {

View File

@ -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,