fix(discovery): support Chinese ping output and decode GBK

- parsePingReply now matches both 'received =' (English) and 'received =' (Chinese) so devices are detected correctly on non-English Windows

- decode ping stdout from GBK to UTF-8

- remove raw ping log output

- add golang.org/x/text dependency
This commit is contained in:
12600k-rog-d4
2026-08-13 02:05:32 +08:00
parent 06908a2fbc
commit ab81cee9b0
3 changed files with 46 additions and 15 deletions

View File

@@ -11,5 +11,6 @@ require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/pflag v1.0.10 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.41.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)