Open Primate8423 opened 5 months ago
Confirmed!
I noticed this when tried to use Hiddify and Husi on android to connect to Windscribe VPN in order to create multi-hop chain. Windscribe's WG configs contain domain names as an endpoint instead of a regular IPs (е.g. lux-149-wg.whiskergalaxy.com), and sing-box doesn't seem to know what to do with it.
If you resolve domain manually and put the resulting IP in the "server:"
field, things immediately start working, but this is not envisioned by Windscribe, so leads to a different kind of issues.
Looks like a clear omission in the sing-box design.
Operating system
Windows
System version
Windows 11 Enterprise 23H2 (22631.3672)
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
Description
If a WireGuard outbound with domain name in
server
field are listed in a selector outbound, sing-box will crash. If it is changed to IP address instead, sing-box won't crash. If the WireGuard outbound is put intofinal
field directly, it won't crash, either.I've tracked it down and the problem causing crash was introduced between
1.8.0-beta.4
and1.8.0-beta.6
. In1.8.0-beta.4
the following configuration file won't crash sing-box (although sing-box will stuck retrying DNS lookup, saydns: lookup failed for reddit.com: exchange6: connect udp 1.1.1.1:53: no route to host | exchange4: connect udp 1.1.1.1:53: no route to host
), and starting from1.8.0-beta.6
sing-box will crash (invalid memory address or nil pointer dereference).Reproduction
In elevated command prompt, run:
The content of
config.json
:Logs
Supporter
Integrity requirements