Skip to content

Commit

Permalink
ip address of api updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kewlfft committed Mar 21, 2021
1 parent 7effa32 commit a3b1d11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opennic-up
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
script="opennic-up"
version="0.97"
version="0.98"

resolvconf="/etc/resolv.conf"
usefile=0
Expand Down Expand Up @@ -80,11 +80,11 @@ anycast="185.121.177.177"
log 'Checking network is up'
fping -q -t 20000 "$anycast"

# find out what the IP address of api.opennicproject.org is, fallback static IP address configured
# find out what the IP address of api is, fallback static IP address configured
apihost=api.opennic.org
apiip=$(dnslookup "$anycast" "$apihost")
echo $apiip
apiip=${apiip:-"161.97.219.82"}
apiip=${apiip:-"116.203.98.109"}
log "Using $apiip as API host"

# source opennic-up config
Expand Down

0 comments on commit a3b1d11

Please sign in to comment.