func getTestConfig() *proxy.Config { config := &proxy.Config{} pubKey, err := proxy.ParsePublicKey("../test_utils/public.pem") if err != nil { log.Fatal("Failed to parse key. ", err) } config.PublicKey = pubKey return config }
func GetTestConfig(addr string) *proxy.Config { config := &proxy.Config{ ListenAddr: addr, } pubKey, err := proxy.ParsePublicKey("../test_utils/public.pem") if err != nil { log.Fatal("Failed to parse key. ", err) } config.PublicKey = pubKey return config }