mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-04 04:17:39 +03:00
Merge abx to sing
This commit is contained in:
parent
b22d9eb41b
commit
8cb63dbb54
3 changed files with 11 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue