Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Mar 11, 2024
1 parent 186d995 commit f8ae1b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
12 changes: 4 additions & 8 deletions v2rayN/v2rayN/Handler/CoreConfigSingbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,6 @@ private int GenOutboundTransport(ProfileItem node, Outbound4Sbox outbound)
transport.path = Utile.IsNullOrEmpty(node.path) ? null : node.path;
}
}
else
{
transport = null;
}

break;

case nameof(ETransport.ws):
Expand Down Expand Up @@ -458,11 +453,12 @@ private int GenOutboundTransport(ProfileItem node, Outbound4Sbox outbound)
break;

default:
transport = null;
break;
}

outbound.transport = transport;
if (transport.type != null)
{
outbound.transport = transport;
}
}
catch (Exception ex)
{
Expand Down
8 changes: 4 additions & 4 deletions v2rayN/v2rayN/Model/SingboxConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ public class Reality4Sbox

public class Transport4Sbox
{
public string type { get; set; }
public string? type { get; set; }
public List<string>? host { get; set; }
public string? path { get; set; }
public Headers4Sbox? headers { get; set; }

public string service_name { get; set; }
public string idle_timeout { get; set; }
public string ping_timeout { get; set; }
public string? service_name { get; set; }
public string? idle_timeout { get; set; }
public string? ping_timeout { get; set; }
public bool? permit_without_stream { get; set; }
}

Expand Down
2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Resx/ResUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Resx/ResUI.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@
<value>Congestion control</value>
</data>
<data name="LvPrevProfile" xml:space="preserve">
<value>Previous proxy remakrs</value>
<value>Previous proxy remarks</value>
</data>
<data name="LvNextProfile" xml:space="preserve">
<value>Next proxy remarks</value>
Expand Down

0 comments on commit f8ae1b8

Please sign in to comment.