mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
commit
ec26998b9b
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@ FROM alpine:3.13.6
|
|||
|
||||
WORKDIR /root/
|
||||
|
||||
RUN apk add --no-cache --update bash libmnl iptables openresolv iproute2
|
||||
RUN apk add --no-cache --update bash libmnl gcompat iptables openresolv iproute2
|
||||
COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
|
||||
COPY --from=builder /app/netclient-app ./netclient
|
||||
COPY --from=builder /app/scripts/netclient.sh .
|
||||
|
|
|
@ -48,7 +48,7 @@ func Join(cfg config.ClientConfig, privateKey string) error {
|
|||
} else {
|
||||
ncutils.PrintLog("success", 0)
|
||||
}
|
||||
if strings.Contains(err.Error(), "ALREADY_INSTALLED") {
|
||||
if err != nil && strings.Contains(err.Error(), "ALREADY_INSTALLED") {
|
||||
ncutils.PrintLog(err.Error(), 0)
|
||||
err = nil
|
||||
}
|
||||
|
|
|
@ -216,8 +216,8 @@ func main() {
|
|||
&cli.StringFlag{
|
||||
Name: "roaming",
|
||||
EnvVars: []string{"NETCLIENT_ROAMING"},
|
||||
Value: "on",
|
||||
Usage: "Checks for IP changes if 'on'. Ignores if 'off'. On by default.",
|
||||
Value: "yes",
|
||||
Usage: "Checks for IP changes if 'yes'. Ignores if 'no'. Yes by default.",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue