Support SRV records in net.Dial and bot.PingAndListContext

This commit is contained in:
Tnze
2022-03-06 00:28:46 +08:00
parent 23bcf9149a
commit cf25807f68
5 changed files with 240 additions and 133 deletions

View File

@ -1,10 +1,7 @@
# mcping
Ping tool for Minecraft: Java Edition.
Just for example. Not recommended for daily use. Use [github.com/go-mc/mcping](github.com/go-mc/mcping) instead, which including SRV parse.
A ping tool for Minecraft: Java Edition.
适用于Minecraft: Java Edition的ping工具。
只起示例作用,日常使用建议使用完整版[github.com/go-mc/mcping](github.com/go-mc/mcping)包含SRV解析等功能。
Install with go tools:
```go get -u github.com/Tnze/go-mc/cmd/mcping```
@ -13,5 +10,5 @@ Install with go tools:
Install with Homebrew:
```brew tap Tnze/tap && brew install mcping```
Useage:
Usage:
```mcping <hostname>[:port]```