mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00

2. added SCTP protocol and schema support 3. added set of NAS models support (Asustor, ReadyNAS, Drobo, QNAP, WD, Synology, Terramaster) 4. moved to fc00::/7 private segment 5. added Windows, MacOS and Linux UI for peers edit and current status
16 lines
406 B
Go
16 lines
406 B
Go
package mobile
|
|
|
|
import "testing"
|
|
|
|
func TestStartYggdrasil(t *testing.T) {
|
|
ygg := &Mesh{}
|
|
if err := mesh.StartAutoconfigure(); err != nil {
|
|
t.Fatalf("Failed to start Mesh: %s", err)
|
|
}
|
|
t.Log("Address:", mesh.GetAddressString())
|
|
t.Log("Subnet:", mesh.GetSubnetString())
|
|
t.Log("Coords:", mesh.GetCoordsString())
|
|
if err := mesh.Stop(); err != nil {
|
|
t.Fatalf("Failed to stop Yggdrasil: %s", err)
|
|
}
|
|
}
|