mirror of
https://github.com/PeernetOfficial/Cmd.git
synced 2026-07-17 02:47:52 +01:00
Update to latest core
This commit is contained in:
@@ -159,13 +159,13 @@ func userCommands() {
|
||||
features := ""
|
||||
featureSupport := core.FeatureSupport()
|
||||
if featureSupport&(1<<core.FeatureIPv4Listen) > 0 {
|
||||
features = "IPv4_LISTEN"
|
||||
features = "IPv4"
|
||||
}
|
||||
if featureSupport&(1<<core.FeatureIPv6Listen) > 0 {
|
||||
if len(features) > 0 {
|
||||
features += ", "
|
||||
}
|
||||
features += "IPv6_LISTEN"
|
||||
features += "IPv6"
|
||||
}
|
||||
|
||||
fmt.Printf("User Agent: %s\nFeatures: %s\n\n", core.UserAgent, features)
|
||||
|
||||
2
go.mod
2
go.mod
@@ -2,4 +2,4 @@ module github.com/PeernetOfficial/Cmd
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/PeernetOfficial/core v0.0.0-20210518212211-8e2043728cfe
|
||||
require github.com/PeernetOfficial/core v0.0.0-20210519125639-82033e124a58
|
||||
|
||||
4
go.sum
4
go.sum
@@ -1,5 +1,5 @@
|
||||
github.com/PeernetOfficial/core v0.0.0-20210518212211-8e2043728cfe h1:kSMzpJE6v77LmNR/KJQHWZprWb+uNgaKWG1Pfgqw3VE=
|
||||
github.com/PeernetOfficial/core v0.0.0-20210518212211-8e2043728cfe/go.mod h1:NglFBSMGFtMqR9ugIR0H244XYPvE1eC5H0X6sergW5U=
|
||||
github.com/PeernetOfficial/core v0.0.0-20210519125639-82033e124a58 h1:mj0X+5WlIf/WppHvq6KlETFfGsvvpw/ZQQlgK0g6nNg=
|
||||
github.com/PeernetOfficial/core v0.0.0-20210519125639-82033e124a58/go.mod h1:NglFBSMGFtMqR9ugIR0H244XYPvE1eC5H0X6sergW5U=
|
||||
github.com/PeernetOfficial/core/dht v0.0.0-20210506124834-e929d6ba2f22 h1:FHBHtQR3ShxuxkG8tgE4ER86UmbNdXam/I1irdiusqg=
|
||||
github.com/PeernetOfficial/core/dht v0.0.0-20210506124834-e929d6ba2f22/go.mod h1:sb2H21VIVTohCXVrDFo/Skl2tN8Yzba+MXSS6NgCYXw=
|
||||
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
|
||||
|
||||
Reference in New Issue
Block a user