Skip to content

Commit

Permalink
fix default regex
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed May 29, 2024
1 parent a17cb90 commit c30f5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ var defaultConfig = Config{
Tunneler: TunnelConfig{
Enable: false,
TunnelProg: "./path/to/tunnel/program",
OutputRegex: `\bNATedAddr\s+(?<host>[0-9.]+|\[[0-9a-f:]+\]):(?<port>\d+)$`,
OutputRegex: `\bNATedAddr\s+(?P<host>[0-9.]+|\[[0-9a-f:]+\]):(?P<port>\d+)$`,
TunnelTimeout: 0,
},

Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const activeStats = computedAsync(async () => {
}
const res = await getStat(storageId, token.value)
if (res === null) {
return EMPTY_STAT
return JSON.parse(JSON.stringify(EMPTY_STAT))
}
return res
})
Expand Down

0 comments on commit c30f5f6

Please sign in to comment.