File yggdrasil-fix-paths.patch of Package yggdrasil-go

From 524ca7fc6bce53c933ebb85e7a1180321029b8c7 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Mon, 5 Aug 2024 23:41:17 +0100
Subject: [PATCH] Change socket and config file paths according to Fedora
 guidelines.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 src/config/defaults_linux.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/defaults_linux.go b/src/config/defaults_linux.go
index 6f7cbfc..636ada7 100644
--- a/src/config/defaults_linux.go
+++ b/src/config/defaults_linux.go
@@ -8,10 +8,10 @@ package config
 func getDefaults() platformDefaultParameters {
 	return platformDefaultParameters{
 		// Admin
-		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
+		DefaultAdminListen: "unix:///run/yggdrasil/yggdrasil.sock",
 
 		// Configuration (used for yggdrasilctl)
-		DefaultConfigFile: "/etc/yggdrasil.conf",
+		DefaultConfigFile: "/etc/yggdrasil/yggdrasil.conf",
 
 		// Multicast interfaces
 		DefaultMulticastInterfaces: []MulticastInterfaceConfig{
-- 
2.45.2