mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-11-17 02:51:12 +00:00
23 lines
313 B
Go
23 lines
313 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
println("Comunic RTC Proxy. (c) Pierre Hubert 2020")
|
|
|
|
// Command line args
|
|
if len(os.Args) != 2 {
|
|
fmt.Printf("Usage: %s <config>", os.Args[0])
|
|
}
|
|
|
|
// First, load the config
|
|
conf := loadConfig(os.Args[1])
|
|
|
|
// Then connect to websocket
|
|
openWs(&conf)
|
|
}
|