mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-24 13:39:50 +00:00
fix: mode str
This commit is contained in:
parent
fcb8965987
commit
fefabaf739
@ -57,12 +57,12 @@ func runClient(cmd *cobra.Command, args []string) {
|
||||
if v != nil {
|
||||
hasMode = true
|
||||
wg.Add(1)
|
||||
go func(fn modeFunc) {
|
||||
go func(mode string, fn modeFunc) {
|
||||
defer wg.Done()
|
||||
if err := fn(v, c); err != nil {
|
||||
logger.Fatal("failed to run mode", zap.String("mode", mode), zap.Error(err))
|
||||
}
|
||||
}(fn)
|
||||
}(mode, fn)
|
||||
}
|
||||
}
|
||||
if !hasMode {
|
||||
|
Loading…
x
Reference in New Issue
Block a user