diff --git a/buildSrc/src/main/kotlin/Helpers.kt b/buildSrc/src/main/kotlin/Helpers.kt index 8394cb2..ceb9049 100644 --- a/buildSrc/src/main/kotlin/Helpers.kt +++ b/buildSrc/src/main/kotlin/Helpers.kt @@ -214,7 +214,7 @@ fun Project.setupApp() { applicationVariants.all { outputs.all { this as BaseVariantOutputImpl - outputFileName = outputFileName.replace(project.name, "NB4A-$versionName") + outputFileName = outputFileName.replace(project.name, "NekoBox-$versionName") .replace("-release", "") .replace("-oss", "") } diff --git a/libcore/box.go b/libcore/box.go index acb2957..0852798 100644 --- a/libcore/box.go +++ b/libcore/box.go @@ -162,12 +162,16 @@ func (b *BoxInstance) Close() (err error) { } func (b *BoxInstance) Sleep() { - b.pauseManager.DevicePause() + if b.pauseManager != nil { + b.pauseManager.DevicePause() + } // _ = b.Box.Router().ResetNetwork() } func (b *BoxInstance) Wake() { - b.pauseManager.DeviceWake() + if b.pauseManager != nil { + b.pauseManager.DeviceWake() + } } func (b *BoxInstance) SetAsMain() { diff --git a/libcore/box_include.go b/libcore/box_include.go index b6d159c..19ad7f2 100644 --- a/libcore/box_include.go +++ b/libcore/box_include.go @@ -27,6 +27,7 @@ import ( "github.com/sagernet/sing-box/protocol/wireguard" _ "github.com/sagernet/sing-box/experimental/clashapi" + _ "github.com/sagernet/sing-dns/quic" ) func nekoboxAndroidInboundRegistry() *inbound.Registry {