Add trojan connection fallback

This commit is contained in:
世界
2022-08-20 21:08:53 +08:00
parent f13ecbd9bb
commit 746b5d8be0
7 changed files with 48 additions and 14 deletions
+2 -4
View File
@@ -20,13 +20,11 @@ func Write(writer io.Writer, domains map[string][]Item) error {
for _, code := range keys {
index[code] = content.Len()
for _, domain := range domains[code] {
err := rw.WriteByte(content, domain.Type)
content.WriteByte(domain.Type)
err := rw.WriteVString(content, domain.Value)
if err != nil {
return err
}
if err = rw.WriteVString(content, domain.Value); err != nil {
return err
}
}
}