Outbounds: Trojan: add transport null check
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
2500537b0f
commit
066fc9b091
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue