Example #1
0
func init() {
	proxyconfig.RegisterOutboundConnectionConfig("vmess",
		func(data []byte) (interface{}, error) {
			rawConfig := new(Config)
			if err := json.Unmarshal(data, rawConfig); err != nil {
				return nil, err
			}
			return rawConfig, nil
		})
}
Example #2
0
func init() {
	config.RegisterOutboundConnectionConfig("freedom",
		func(data []byte) (interface{}, error) {
			return new(Config), nil
		})
}
Example #3
0
func init() {
	config.RegisterOutboundConnectionConfig("blackhole", json.JsonConfigLoader(func() interface{} {
		return new(BlackHoleConfig)
	}))
}
Example #4
0
func init() {
	config.RegisterOutboundConnectionConfig("freedom", json.JsonConfigLoader(func() interface{} {
		return &FreedomConfiguration{}
	}))
}
Example #5
0
func init() {
	proxyconfig.RegisterOutboundConnectionConfig("vmess", jsonconfig.JsonConfigLoader(func() interface{} {
		return new(Outbound)
	}))
}