mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
update core
This commit is contained in:
parent
68acf73f6a
commit
05a1520fac
@ -131,7 +131,7 @@ class ServiceNotification(private val status: MutableLiveData<Status>, private v
|
||||
}
|
||||
|
||||
fun updateStatus(status: SystemInfo) {
|
||||
val content = "${status.current_outbound}:\t\n ${Libbox.formatBytes(status.uplink)}/s ↑\t${Libbox.formatBytes(status.downlink)}/s ↓"
|
||||
val content = "${Libbox.formatBytes(status.uplink)}/s ↑\t${Libbox.formatBytes(status.downlink)}/s ↓ \n${status.current_outbound}"
|
||||
val title = "${status.current_profile}"
|
||||
Application.notificationManager.notify(
|
||||
notificationId,
|
||||
|
||||
@ -194,8 +194,7 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
|
||||
systemProxyEnabled = false
|
||||
}
|
||||
|
||||
val pfd =
|
||||
builder.establish() ?: error("android: the application is not prepared or is revoked")
|
||||
val pfd = builder.establish() ?: error("android: the application is not prepared or is revoked")
|
||||
service.fileDescriptor = pfd
|
||||
return pfd.fd
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 00503d9080fcecf8ca75f739e00070204b81252e
|
||||
Subproject commit e7ee94f2f14ad22d945b09d5cc7c966678b9509e
|
||||
@ -208,6 +208,7 @@ class HiddifyCoreService with InfraLogger {
|
||||
final res = await core.bgClient.restart(
|
||||
StartRequest(
|
||||
configPath: path,
|
||||
configName: name,
|
||||
disableMemoryLimit: disableMemoryLimit,
|
||||
delayStart: true,
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user