diff --git a/README.md b/README.md index c2113ac..a0c7522 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +> [!WARNING] +> # No longer maintained. No longer relevant. +> +> This project is no longer maintained, was used in transitional period when ecosystem was switching from V1 to V2. +> `go-libp2p` >= `v0.26.0` [no longer supports Relay V1](https://github.com/libp2p/go-libp2p/issues/2075), making this project outdated. +> +> Modern deployments should implement their own relay setups built with Relay V2, supported via [go-lib2p2](https://github.com/libp2p/go-libp2p) and `libp2p.EnableRelayService` + # libp2p-relay-daemon > A standalone daemon that provides libp2p circuit relay services, diff --git a/cmd/libp2p-relay-daemon/main.go b/cmd/libp2p-relay-daemon/main.go index a6c15e8..94116e7 100644 --- a/cmd/libp2p-relay-daemon/main.go +++ b/cmd/libp2p-relay-daemon/main.go @@ -1,6 +1,7 @@ package main import ( + "errors" "flag" "fmt" "net/http" @@ -108,16 +109,16 @@ func main() { panic(err) } - if cfg.RelayV2.Enabled { - fmt.Printf("Starting RelayV2...\n") - _, err = relayv2.New(host, - relayv2.WithResources(cfg.RelayV2.Resources), - relayv2.WithACL(acl)) - if err != nil { - panic(err) - } - fmt.Printf("RelayV2 is running!\n") + if !cfg.RelayV2.Enabled { + panic(errors.New("RelayV2.Enabled=false is no longer supported. V2 is the only supported version now (https://github.com/libp2p/go-libp2p/issues/2075)")) + } + _, err = relayv2.New(host, + relayv2.WithResources(cfg.RelayV2.Resources), + relayv2.WithACL(acl)) + if err != nil { + panic(err) } + fmt.Printf("RelayV2 is running!\n") select {} } diff --git a/version.json b/version.json index 372b6ea..fc15ae0 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.4.0" + "version": "v0.5.0" }