Merge abx to sing

This commit is contained in:
世界 2023-01-03 10:49:48 +08:00
parent b22d9eb41b
commit 8cb63dbb54
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 11 additions and 12 deletions

View file

@ -8,8 +8,8 @@ import (
"os"
"strconv"
"github.com/sagernet/abx-go"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/abx"
E "github.com/sagernet/sing/common/exceptions"
"github.com/fsnotify/fsnotify"
@ -104,7 +104,7 @@ func (m *packageManager) updatePackages() error {
return err
}
var decoder *xml.Decoder
reader, ok := abx.NewReader(bytes.NewReader(packagesData))
reader, ok := abx.NewReader(packagesData)
if ok {
decoder = xml.NewTokenDecoder(reader)
} else {