Outbounds: Trojan: add transport null check

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-18 20:09:53 +03:00
parent 2500537b0f
commit 066fc9b091
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

@ -44,7 +44,7 @@ class Singularity.Outbound.Trojan : Dial, Json.Serializable {
public override Json.Node serialize_property (string property_name, GLib.Value value, GLib.ParamSpec pspec) {
var node = default_serialize_property (property_name, value, pspec);
if (property_name == "transport") {
if (property_name == "transport" && transport != null) {
Utils.fix_type (ref node);
Utils.fix_dash (ref node);
}