Skip to content
Snippets Groups Projects
Verified Commit 0d136325 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

matrix: Use node --dns-result-order=ipv4first to work around bug

Node's address lookup strips the scope ID from link-local IPv6
addresses, making them invalid and unable to be connected to.

We're getting hit with this since Node 17 because it now defaults to the
`verbatim` dns-result-order and this happens to return the link-local
IPv6 address for `matrix.archlinux.org` first.

Specify `ipv4first` so we return to Node 16's behavior.
parent 69bb5a94
No related branches found
No related tags found
No related merge requests found
Pipeline #13633 passed
......@@ -6,7 +6,7 @@ After=network.target synapse.service
[Service]
User=synapse
WorkingDirectory=/var/lib/synapse/matrix-appservice-irc
ExecStart=/usr/bin/node app.js \
ExecStart=/usr/bin/node --dns-result-order=ipv4first app.js \
-c /etc/synapse/irc-bridge.yaml \
-f /etc/synapse/appservice-registration-irc.yaml
AmbientCapabilities=CAP_NET_BIND_SERVICE
......
......@@ -8,7 +8,7 @@ User=synapse
WorkingDirectory=/var/lib/synapse/mjolnir
Environment=NODE_ENV=production
Environment=NODE_CONFIG_DIR=/etc/synapse/mjolnir
ExecStart=/usr/bin/node lib/index.js
ExecStart=/usr/bin/node --dns-result-order=ipv4first lib/index.js
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment