vtun/common/config/config.go
2021-09-11 23:53:58 +08:00

19 lines
304 B
Go

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