fix: display stats by html.

This commit is contained in:
Daniel Ding
2024-07-04 12:10:12 +08:00
parent f3b05bc4f2
commit 83db0f096f
2 changed files with 56 additions and 45 deletions

View File

@@ -69,8 +69,7 @@ conn {{ .Name }}-c2
rightid=@c1.{{ .RightId }}.{{ .Transport }}
{{- end }}
leftprotoport=udp
rightprotoport=udp/8472
`,
rightprotoport=udp/8472`,
"gre": `
conn {{ .Name }}-c1
auto=add
@@ -92,11 +91,9 @@ conn {{ .Name }}-c1
{{- end }}
authby=secret
leftprotoport=gre
rightprotoport=gre
`,
rightprotoport=gre`,
"secret": `
%any @{{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"
`,
%any @{{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"`,
}
func (w *IPSecWorker) Initialize() {