summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples/network
diff options
context:
space:
mode:
authorJiří Pinkava <j-pi@seznam.cz>2016-06-26 03:01:19 +0200
committerJiří Pinkava <j-pi@seznam.cz>2016-06-26 03:01:57 +0200
commitda02832b0dc0b3ed8c882af375659b76c0aa8c06 (patch)
treeefc59388f8791aa9e3ffcef5168ec1f926e794d5 /gnuradio-runtime/examples/network
parenta99f8ac8cc9a15ab608081c10a7733fce125e276 (diff)
examples: enforce IPv4 in all example addresses
localhost might resolve to ::1 on IPv6 enabled hosts, but the client is listening only on 0.0.0.0 (IPv4) addresses.
Diffstat (limited to 'gnuradio-runtime/examples/network')
-rwxr-xr-xgnuradio-runtime/examples/network/audio_source.py2
-rwxr-xr-xgnuradio-runtime/examples/network/dial_tone_source.py2
-rwxr-xr-xgnuradio-runtime/examples/network/vector_source.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/examples/network/audio_source.py b/gnuradio-runtime/examples/network/audio_source.py
index 577beff84c..881efff81a 100755
--- a/gnuradio-runtime/examples/network/audio_source.py
+++ b/gnuradio-runtime/examples/network/audio_source.py
@@ -41,7 +41,7 @@ class audio_source(gr.top_block):
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option)
- parser.add_option("", "--host", type="string", default="localhost",
+ parser.add_option("", "--host", type="string", default="127.0.0.1",
help="Remote host name (domain name or IP address")
parser.add_option("", "--port", type="int", default=65500,
help="port number to connect to")
diff --git a/gnuradio-runtime/examples/network/dial_tone_source.py b/gnuradio-runtime/examples/network/dial_tone_source.py
index 26064962dd..20c9a3b800 100755
--- a/gnuradio-runtime/examples/network/dial_tone_source.py
+++ b/gnuradio-runtime/examples/network/dial_tone_source.py
@@ -53,7 +53,7 @@ class dial_tone_source(gr.top_block):
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option)
- parser.add_option("", "--host", type="string", default="localhost",
+ parser.add_option("", "--host", type="string", default="127.0.0.1",
help="Remote host name (domain name or IP address")
parser.add_option("", "--port", type="int", default=65500,
help="port number to connect to")
diff --git a/gnuradio-runtime/examples/network/vector_source.py b/gnuradio-runtime/examples/network/vector_source.py
index 568425fd50..c13b4b1d6f 100755
--- a/gnuradio-runtime/examples/network/vector_source.py
+++ b/gnuradio-runtime/examples/network/vector_source.py
@@ -35,7 +35,7 @@ class vector_source(gr.top_block):
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option)
- parser.add_option("", "--host", type="string", default="localhost",
+ parser.add_option("", "--host", type="string", default="127.0.0.1",
help="Remote host name (domain name or IP address")
parser.add_option("", "--port", type="int", default=65500,
help="port number to connect to")