Skip to content

Commit

Permalink
fix: localid is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldin95 committed Jun 22, 2024
1 parent 33d27ed commit 41dddde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/api/v5/ipsec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pkg/switch/ipsec.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ conn {{ .Name }}-c1
rightprotoport=gre
`
secretTmpl = `
%any {{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"
%any @{{ .RightId }}.{{ .Transport }} : PSK "{{ .Secret }}"
`
)

Expand Down

0 comments on commit 41dddde

Please sign in to comment.