mirror of
https://github.com/luscis/openlan.git
synced 2025-10-12 03:50:29 +08:00
fix: localid is required.
This commit is contained in:
@@ -107,11 +107,11 @@ func (o IPSecTunnel) Commands() *cli.Command {
|
||||
Usage: "Add a ipsec tunnel",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{Name: "remote", Required: true},
|
||||
&cli.StringFlag{Name: "remoteid"},
|
||||
&cli.StringFlag{Name: "remoteid", Required: true},
|
||||
&cli.IntFlag{Name: "remoteport"},
|
||||
&cli.StringFlag{Name: "protocol", Required: true},
|
||||
&cli.StringFlag{Name: "secret", Required: true},
|
||||
&cli.StringFlag{Name: "localid"},
|
||||
&cli.StringFlag{Name: "localid", Required: true},
|
||||
&cli.IntFlag{Name: "localport"},
|
||||
},
|
||||
Action: o.Add,
|
||||
|
@@ -95,7 +95,7 @@ conn {{ .Name }}-c1
|
||||
rightprotoport=gre
|
||||
`
|
||||
secretTmpl = `
|
||||
%any {{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"
|
||||
%any @{{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"
|
||||
`
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user