@@ -205,48 +205,48 @@ DUDE
205205}
206206
207207if [ -n "$PEERS" ]; then
208- echo "Server mode is selected"
208+ echo "**** Server mode is selected **** "
209209 if ! [[ "$PEERS" =~ ^[0-9]+$ ]]; then
210- echo "PEERS is not set to an integer, setting it to 1"
210+ echo "**** PEERS is not set to an integer, setting it to 1 **** "
211211 PEERS="1"
212212 fi
213213 if [ -z "$SERVERURL" ] || [ "$SERVERURL" = "auto" ]; then
214214 SERVERURL=$(curl icanhazip.com)
215- echo "SERVERURL var is either not set or is set to \"auto\", setting external IP to auto detected value of $SERVERURL"
215+ echo "**** SERVERURL var is either not set or is set to \"auto\", setting external IP to auto detected value of $SERVERURL **** "
216216 else
217- echo "External server address is set to $SERVERURL"
217+ echo "**** External server address is set to $SERVERURL **** "
218218 fi
219219 SERVERPORT=${SERVERPORT:-51820}
220- echo "External server port is set to ${SERVERPORT}. Make sure that port is properly forwarded to port 51820 inside this container"
220+ echo "**** External server port is set to ${SERVERPORT}. Make sure that port is properly forwarded to port 51820 inside this container **** "
221221 INTERNAL_SUBNET=${INTERNAL_SUBNET:-10.13.13.0}
222- echo "Internal subnet is set to $INTERNAL_SUBNET"
222+ echo "**** Internal subnet is set to $INTERNAL_SUBNET **** "
223223 INTERFACE=$(echo "$INTERNAL_SUBNET" | awk 'BEGIN{FS=OFS="."} NF--')
224224 if [ -z "$PEERDNS" ] || [ "$PEERDNS" = "auto" ]; then
225225 PEERDNS="${INTERFACE}.1"
226- echo "PEERDNS var is either not set or is set to \"auto\", setting peer DNS to ${INTERFACE}.1 to use wireguard docker host's DNS."
226+ echo "**** PEERDNS var is either not set or is set to \"auto\", setting peer DNS to ${INTERFACE}.1 to use wireguard docker host's DNS. **** "
227227 else
228- echo "Peer DNS servers will be set to $PEERDNS"
228+ echo "**** Peer DNS servers will be set to $PEERDNS **** "
229229 fi
230230 if [ ! -f /config/wg0.conf ]; then
231- echo "No found wg0.conf found (maybe an initial install), generating 1 server and $PEERS peer/client confs"
231+ echo "**** No found wg0.conf found (maybe an initial install), generating 1 server and $PEERS peer/client confs **** "
232232 generate_confs
233233 save_vars
234234 else
235- echo "Server mode is selected"
235+ echo "**** Server mode is selected **** "
236236 [[ -f /config/.donoteditthisfile ]] && \
237237 . /config/.donoteditthisfile
238238 if [ "$SERVERURL" != "$ORIG_SERVERURL" ] || [ "$SERVERPORT" != "$ORIG_SERVERPORT" ] || [ "$PEERDNS" != "$ORIG_PEERDNS" ] || [ "$PEERS" != "$ORIG_PEERS" ] || [ "$INTERFACE" != "$ORIG_INTERFACE" ]; then
239- echo "Server related environment variables changed, regenerating 1 server and $PEERS peer/client confs"
239+ echo "**** Server related environment variables changed, regenerating 1 server and $PEERS peer/client confs **** "
240240 generate_confs
241241 save_vars
242242 else
243- echo "No changes to parameters. Existing configs are used."
243+ echo "**** No changes to parameters. Existing configs are used. **** "
244244 fi
245245 fi
246246else
247- echo "Client mode selected."
247+ echo "**** Client mode selected."
248248 if [ ! -f /config/wg0.conf ]; then
249- echo "No client conf found. Provide your own client conf as \"/config/wg0.conf\" and restart the container."
249+ echo "**** No client conf found. Provide your own client conf as \"/config/wg0.conf\" and restart the container. **** "
250250 sleep infinity
251251 fi
252252fi
0 commit comments