mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
setting default roaming
This commit is contained in:
@@ -28,7 +28,7 @@ FROM alpine:3.13.6
|
|||||||
|
|
||||||
WORKDIR /root/
|
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 /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
|
||||||
COPY --from=builder /app/netclient-app ./netclient
|
COPY --from=builder /app/netclient-app ./netclient
|
||||||
COPY --from=builder /app/scripts/netclient.sh .
|
COPY --from=builder /app/scripts/netclient.sh .
|
||||||
|
@@ -48,7 +48,7 @@ func Join(cfg config.ClientConfig, privateKey string) error {
|
|||||||
} else {
|
} else {
|
||||||
ncutils.PrintLog("success", 0)
|
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)
|
ncutils.PrintLog(err.Error(), 0)
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
|
@@ -216,8 +216,8 @@ func main() {
|
|||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "roaming",
|
Name: "roaming",
|
||||||
EnvVars: []string{"NETCLIENT_ROAMING"},
|
EnvVars: []string{"NETCLIENT_ROAMING"},
|
||||||
Value: "on",
|
Value: "yes",
|
||||||
Usage: "Checks for IP changes if 'on'. Ignores if 'off'. On by default.",
|
Usage: "Checks for IP changes if 'yes'. Ignores if 'no'. Yes by default.",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user