vtun/common/config/config.go
2021-04-27 15:56:05 +08:00

17 lines
266 B
Go

package config
import "github.com/net-byte/vtun/common/cipher"
type Config struct {
LocalAddr string
ServerAddr string
CIDR string
Key string
Protocol string
ServerMode bool
}
func (config *Config) Init() {
cipher.GenerateKey(config.Key)
}