- #!/usr/bin/env bash
- set -e
- if [[ "$OSTYPE" == "linux-gnu" ]]; then
- docker network inspect --format='{{range .IPAM.Config}}{{.Gateway}}{{end}}' joystream_default
- elif [[ "$OSTYPE" == "darwin"* ]]; then
-
- ipconfig getifaddr en0 || ipconfig getifaddr en1
- else
- echo 'localhost'
- fi
|