mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
Echo default gateway for troubleshooting purposes
This commit is contained in:
parent
b096ee553c
commit
e9bef978ac
@ -20,6 +20,7 @@ DEBUG=false
|
|||||||
|
|
||||||
# get default gateway of interfaces as looping through them
|
# get default gateway of interfaces as looping through them
|
||||||
DEFAULT_GATEWAY=$(ip -4 route list 0/0 | cut -d ' ' -f 3)
|
DEFAULT_GATEWAY=$(ip -4 route list 0/0 | cut -d ' ' -f 3)
|
||||||
|
echo "[info] Default gateway defined as ${LAN_NETWORK}" | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
|
|
||||||
# strip whitespace from start and end of lan_network_item
|
# strip whitespace from start and end of lan_network_item
|
||||||
export LAN_NETWORK=$(echo "${LAN_NETWORK}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
|
export LAN_NETWORK=$(echo "${LAN_NETWORK}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
|
||||||
|
Loading…
Reference in New Issue
Block a user