diff --git a/docker/Dockerfile-netclient-full b/docker/Dockerfile-netclient-full index 642c2864..42c5b439 100644 --- a/docker/Dockerfile-netclient-full +++ b/docker/Dockerfile-netclient-full @@ -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 . diff --git a/netclient/command/commands.go b/netclient/command/commands.go index cfb79c95..fd35047e 100644 --- a/netclient/command/commands.go +++ b/netclient/command/commands.go @@ -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 } diff --git a/netclient/main.go b/netclient/main.go index 2f541f1c..3179e006 100644 --- a/netclient/main.go +++ b/netclient/main.go @@ -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.", }, }