commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/05: examples: enforce IPv4 in all exampl


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/05: examples: enforce IPv4 in all example addresses
Date: Tue, 28 Jun 2016 18:53:42 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit da02832b0dc0b3ed8c882af375659b76c0aa8c06
Author: Jiří Pinkava <address@hidden>
Date:   Sun Jun 26 03:01:19 2016 +0200

    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.
---
 gnuradio-runtime/examples/network/audio_source.py     | 2 +-
 gnuradio-runtime/examples/network/dial_tone_source.py | 2 +-
 gnuradio-runtime/examples/network/vector_source.py    | 2 +-
 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 577beff..881efff 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 2606496..20c9a3b 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 568425f..c13b4b1 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]