Skip to content

Commit

Permalink
fix grep
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Jan 22, 2024
1 parent f102a8a commit 224db59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/service-proton/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

umask "${UMASK}"

vpn_remote=$(grep -P -o -m 1 '(?<=^Endpoint)(\s{0,})[^\n\r]+' < "${CONFIG_DIR}/wireguard/${VPN_CONF}.conf"| sed -e 's~^[=\ ]*~~')
vpn_remote=$(grep -P -o -m 1 '(?<=^Endpoint)(\s{0,})[^:]+' < "${CONFIG_DIR}/wireguard/${VPN_CONF}.conf"| sed -e 's~^[=\ ]*~~')

while true; do
if ! natpmpc -g "${vpn_remote}"; then
Expand Down

0 comments on commit 224db59

Please sign in to comment.