ceremonyclient/go-libp2p/p2p/transport/quic/cmd/server/main.go

20 lines
297 B
Go
Raw Normal View History

2023-08-21 03:50:38 +00:00
package main
import (
"fmt"
"log"
"os"
2024-06-08 11:32:45 +00:00
cmdlib "github.com/libp2p/go-libp2p/p2p/transport/quic/cmd/lib"
2023-08-21 03:50:38 +00:00
)
func main() {
if len(os.Args) != 2 {
fmt.Printf("Usage: %s <port>", os.Args[0])
return
}
2024-06-08 11:32:45 +00:00
if err := cmdlib.RunServer(os.Args[1], nil); err != nil {
2023-08-21 03:50:38 +00:00
log.Fatalf(err.Error())
}
}