Skip to content

Commit c30f5f6

Browse files
committed
fix default regex
1 parent a17cb90 commit c30f5f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ var defaultConfig = Config{
249249
Tunneler: TunnelConfig{
250250
Enable: false,
251251
TunnelProg: "./path/to/tunnel/program",
252-
OutputRegex: `\bNATedAddr\s+(?<host>[0-9.]+|\[[0-9a-f:]+\]):(?<port>\d+)$`,
252+
OutputRegex: `\bNATedAddr\s+(?P<host>[0-9.]+|\[[0-9a-f:]+\]):(?P<port>\d+)$`,
253253
TunnelTimeout: 0,
254254
},
255255

dashboard/src/views/HomeView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const activeStats = computedAsync(async () => {
8989
}
9090
const res = await getStat(storageId, token.value)
9191
if (res === null) {
92-
return EMPTY_STAT
92+
return JSON.parse(JSON.stringify(EMPTY_STAT))
9393
}
9494
return res
9595
})

0 commit comments

Comments
 (0)