feat(aa): add support for advanced network rule.
This commit is contained in:
parent
bfcf9f846c
commit
3a17dd3310
3 changed files with 73 additions and 22 deletions
|
|
@ -15,6 +15,22 @@
|
|||
{{ " " }}{{ . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with .LocalAddress.IP -}}
|
||||
{{ " ip=" }}{{ . }}
|
||||
{{- end -}}
|
||||
{{- with .LocalAddress.Port -}}
|
||||
{{ " port=" }}{{ . }}
|
||||
{{- end -}}
|
||||
{{- if and .PeerAddress.IP .PeerAddress.Port -}}
|
||||
{{ " peer=(ip=" }}{{ .PeerAddress.IP }}{{ ", port="}}{{ .PeerAddress.Port }}{{ ")" }}
|
||||
{{- else -}}
|
||||
{{- with .PeerAddress.IP -}}
|
||||
{{ " peer=(ip=" }}{{ . }}{{ ")" }}
|
||||
{{- end -}}
|
||||
{{- with .PeerAddress.Port -}}
|
||||
{{ " peer=(port=" }}{{ . }}{{ ")" }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- "," -}}
|
||||
{{- template "comment" . -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue