Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Apr 4, 2022
1 parent c3bda01 commit 3e81662
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ fun buildV2RayConfig(
})
})
}
if (currentDomainStrategy == "AsIs") {
currentDomainStrategy = "UseIP"
}
} else {
currentOutbound.apply {
val keepAliveInterval = DataStore.tcpKeepAliveInterval
Expand Down Expand Up @@ -1133,6 +1136,9 @@ fun buildV2RayConfig(
if (rule.ssid.isNotBlank()) {
ssidList = rule.ssid.split("\n")
}
if (rule.networkType.isNotBlank()) {
networkType = rule.networkType
}
when {
rule.reverse -> inboundTag = listOf("reverse-${rule.id}")
balancerMap.containsKey(rule.outbound) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public static class RuleObject {

public List<Integer> uidList;
public List<String> ssidList;
public String networkType;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,15 @@ fun StandardV2RayBean.toUri(): String {
}
}

when (packetEncoding) {
PacketAddrType.Packet_VALUE -> {
builder.addQueryParameter("packetEncoding", "packet")
}
PacketAddrType.XUDP_VALUE -> {
builder.addQueryParameter("packetEncoding", "xudp")
}
}

if (name.isNotBlank()) {
builder.setRawFragment(name.urlSafe())
}
Expand Down
2 changes: 1 addition & 1 deletion library/core
Submodule core updated 3 files
+2 −1 .github/workflows/debug.yml
+2 −2 go.mod
+4 −2 go.sum

0 comments on commit 3e81662

Please sign in to comment.