mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 18:11:25 +01:00
b179cd3cf4
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
|
|
}
|