1
1
Fork 0
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:
Zack Scholl 2018-06-28 07:46:16 -07:00
parent 5ede3186e5
commit ce8135002c
5 changed files with 311 additions and 44 deletions

View file

@ -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)
}