INNER CODE UNIT · Go

conf

l7mp/stunner · cmd/stunnerd/main.go:179

	conf := make(chan *stnrv2.StunnerConfig, 1)
	defer close(conf)

	var cancelConfigLoader context.CancelFunc
	if flag.NArg() == 1 {
		log.Infof("starting %s with default configuration at TURN URI: %s",
			os.Args[0], flag.Arg(0))

		c, err := stunner.NewDefaultConfig(flag.Arg(0))
		if err != nil {
			log.Errorf("could not load default STUNner config: %s", err.Error())
			os.Exit(1)
		}

		conf <- c

	} else if !*watch {
		ctx, cancel := context.WithCancel(context.Background())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…