Univention Bugzilla – Attachment 5777 Details for
Bug 34061
Only binds to one random IP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Listen to INADDR_ANY
3406x_net-installer.diff (text/plain), 894 bytes, created by
Philipp Hahn
on 2014-02-05 17:29 CET
(
hide
)
Description:
Listen to INADDR_ANY
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2014-02-05 17:29 CET
Size:
894 bytes
patch
obsolete
>diff --git a/branches/ucs-3.2/ucs-3.2-0/services/univention-net-installer/univention-net-installer-daemon b/branches/ucs-3.2/ucs-3.2-0/services/univention-net-installer/univention-net-installer-daemon >index 778753a..1b96bb4 100755 >--- a/branches/ucs-3.2/ucs-3.2-0/services/univention-net-installer/univention-net-installer-daemon >+++ b/branches/ucs-3.2/ucs-3.2-0/services/univention-net-installer/univention-net-installer-daemon >@@ -101,11 +101,10 @@ def processor(options, data_queue): > process(data) > > def listener(options, data_queue): >- local_host_address = socket.gethostbyname(socket.gethostname()) > size = 1024 # max hostname length > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) >- s.bind((local_host_address, options.port, )) >+ s.bind(("", options.port, )) > s.listen(1) > while True: > (client, _, ) = s.accept()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 34061
: 5777