Release 2.6.1: resolve AWG endpoint hostnames to IP before connect.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-29 15:42:55 +03:00
co-authored by Cursor
parent 99bbac20e2
commit 4ecfb9bed7
23 changed files with 233 additions and 34 deletions
+4
View File
@@ -46,6 +46,10 @@ func (e *Engine) Start(ctx context.Context, profile config.Profile, _ string) er
if err != nil {
return err
}
// amneziawg-go IpcSet does not resolve hostnames reliably (Windows WSAHOST_NOT_FOUND).
if err := cfg.ResolveEndpoint(); err != nil {
return err
}
ipc, err := cfg.ToIPC()
if err != nil {
return err