This commit is contained in:
jdl
2026-06-06 18:46:46 +02:00
parent b972784d90
commit 199f774ed3
16 changed files with 1168 additions and 0 deletions

View File

@@ -48,6 +48,11 @@ func (d *Device) Close() error {
return d.client.Close()
}
// Name returns the interface name.
func (d *Device) Name() string {
return d.name
}
// Configure sets the device's private key and UDP listen port.
func (d *Device) Configure(privKey wgtypes.Key, listenPort int) error {
return d.client.ConfigureDevice(d.name, wgtypes.Config{