forked from extern/smegmesh
Hashing the interface and using ephmeral ports so that the admin doesn't choose an interface and port combination. An administrator can alteranatively decide to provide port but this isn't critical.
16 lines
329 B
Go
16 lines
329 B
Go
package wg
|
|
|
|
type WgInterfaceManipulatorStub struct{}
|
|
|
|
func (i *WgInterfaceManipulatorStub) CreateInterface(port int) error {
|
|
return nil
|
|
}
|
|
|
|
func (i *WgInterfaceManipulatorStub) AddAddress(ifName string, addr string) error {
|
|
return nil
|
|
}
|
|
|
|
func (i *WgInterfaceManipulatorStub) RemoveInterface(ifName string) error {
|
|
return nil
|
|
}
|