Added external IP auto-detection

This commit is contained in:
ha7ilm 2016-04-11 14:48:59 +02:00
parent 3f9b0cf07f
commit 790d9872e7

View File

@ -117,6 +117,8 @@ To use a HackRF, compile the HackRF host tools from its "stdout" branch:
#You can use other SDR hardware as well, by giving your own command that outputs the I/Q samples...
# ==== Misc options ====
shown_center_freq = center_freq #you can change this if you use an upconverter
client_audio_buffer_size = 5
@ -141,3 +143,10 @@ csdr_dynamic_bufsize = False # This allows you to change the buffering mode of c
csdr_print_bufsizes = False # This prints the buffer sizes used for csdr processes.
csdr_through = False # Setting this True will print out how much data is going into the DSP chains.
#Look up external IP address automatically from icanhazip.com, and use it as [server_hostname]
"""
print "[openwebrx-config] Detecting external IP address..."
import urllib2
server_hostname=urllib2.urlopen("http://icanhazip.com").read()[:-1]
print "[openwebrx-config] External IP address detected:", server_hostname
"""