Skip to content

Commit 3b1c465

Browse files
committed
docs: explain why proxy TYPE id 25 is reserved (not skipped)
Clarify that TYPE_AWG=26 deliberately skips 25, which is reserved for the MasterDnsVPN sidecar type on PR #18, so persisted type IDs stay stable when both branches merge. (Greptile)
1 parent 151c67a commit 3b1c465

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/database/ProxyEntity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ data class ProxyEntity(
105105
const val TYPE_ANYTLS = 22
106106
const val TYPE_JUICITY = 23
107107
const val TYPE_SNELL = 24
108+
109+
// 25 is reserved for the MasterDnsVPN sidecar type on the
110+
// feature/masterdnsvpn-sidecar branch (PR #18); do not reuse it here so
111+
// persisted type IDs stay stable when both branches merge.
108112
const val TYPE_AWG = 26
109113

110114
const val TYPE_CONFIG = 998

0 commit comments

Comments
 (0)