mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
add api and divide into relay+server
This commit is contained in:
parent
5ede3186e5
commit
ce8135002c
5 changed files with 311 additions and 44 deletions
2
main.go
2
main.go
|
@ -3,7 +3,7 @@ package main
|
|||
import croc "github.com/schollz/croc/src"
|
||||
|
||||
func main() {
|
||||
err := croc.RunRelay("8002")
|
||||
err := croc.Relay([]string{"27001", "27002", "27003", "27004"}, "8002")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue