merge develop into master #21
@ -40,7 +40,7 @@ type Configuration struct {
|
||||
type Host struct {
|
||||
Crypto string `validate:"required,oneof=None Blake2s"`
|
||||
SharedKey string `validate:"required_if=Crypto Blake2s"`
|
||||
MTU uint `validate:"required,min=576"`
|
||||
MTU uint `validate:"required,min=576"`
|
||||
}
|
||||
|
||||
type Peer struct {
|
||||
|
@ -49,7 +49,6 @@ func NewFromFile(fd uintptr, mtu int) (ss *SourceSink, err error) {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
||||
if strings.Contains(iface.Flags.String(), "up") {
|
||||
log.Println("tun is up")
|
||||
ss.up = true
|
||||
|
Loading…
Reference in New Issue
Block a user