fix(hysteria2): emit https server_url for sing-box realm outbound (#9642)

sing-box requires realm.server_url as a full URL (https://host:port).
Bare host:port caused "missing host in realm server_url" on import.
Also forward stun_servers and clear ResolveRealm success message.

Fixes #9635
This commit is contained in:
dr mike
2026-06-28 06:35:41 +03:30
committed by GitHub
parent 5a9a9b7ab1
commit bf376a8fac
6 changed files with 78 additions and 1 deletions
@@ -275,9 +275,10 @@ public partial class CoreConfigSingboxService
{
var realm4Sbox = new HyRealm4Sbox()
{
server_url = realm.RendezvousHostPort,
server_url = realm.ToServerUrl(),
token = realm.Token,
realm_id = realm.RealmName,
stun_servers = realm.StunList?.Count > 0 ? realm.StunList : null,
};
outbound.realm = realm4Sbox;
outbound.server = null;