mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
18 lines
283 B
Go
18 lines
283 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
|
|
TLS bool
|
|
}
|
|
|
|
func (config *Config) Init() {
|
|
cipher.GenerateKey(config.Key)
|
|
}
|