- Fix old IP problem returned by MyIPD service.

This commit is contained in:
2025-09-02 18:50:21 +02:00
parent 7b2cf91aba
commit ec2809d453
3 changed files with 11 additions and 3 deletions

View File

@@ -40,14 +40,14 @@ user=microsocks'
#---------------------------------------------------------------------------------------------------------------
ARG MYIPD_INI='[program:myipd] \n\
directory='${MICROSOCKS_HOME}' \n\
command=/bin/bash -c `while true; do myip | nc -l -q 0 ${MYIPD_PORT}; done` \n\
command=/bin/bash -c `while true; do nc -l -q 0 -p ${MYIPD_PORT} -c myip; done` \n\
user=microsocks'
#---------------------------------------------------------------------------------------------------------------
RUN urpmi.update -a \
&& urpmi --force microsocks netcat-openbsd \
&& urpmi --force microsocks netcat-traditional \
&& mkdir ${MICROSOCKS_LIB} \
&& useradd -M --home-dir ${MICROSOCKS_HOME} --password "" microsocks \
&& echo -e "${MICROSOCKSD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/microsocksd \