Revert "Do not use /sbin/ip to fetch the current ip (fix #712)"

This reverts commit 561644f75b.
This commit is contained in:
nicolas.dorier 2019-03-31 13:54:10 +09:00
parent 24aa18e9ed
commit 2856c10bc3

View File

@ -1,4 +1,4 @@
#!/bin/sh
echo "$(grep "$HOSTNAME" /etc/hosts|awk '{print $1}') host.docker.internal" >> /etc/hosts
echo "$(/sbin/ip route|awk '/default/ { print $3 }') host.docker.internal" >> /etc/hosts
exec dotnet BTCPayServer.dll