mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-03 20:26:31 +08:00
Task-number: QTBUG-86187 Change-Id: I050a915cb72f91374f40d3db5ee2d417181eda8a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
14 lines
427 B
Bash
Executable File
14 lines
427 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# The new version of libnss-mdns resolver library automatically rejects all
|
|
# hostnames with more than two labels (i.e. subdomains deep), for example
|
|
# vsftpd.test-net.qt.local is automatically rejected. The changes here fix
|
|
# this, see also https://github.com/lathiat/nss-mdns#etcmdnsallow
|
|
|
|
cat <<EOT | sudo tee /etc/mdns.allow
|
|
.local.
|
|
.local
|
|
EOT
|
|
|
|
sudo sed -i '/^hosts:/s/mdns4_minimal/mdns4/' /etc/nsswitch.conf
|