mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-18 12:49:07 +02:00
Let active profile owner be the source of truth for the session holder
This commit is contained in:
@@ -578,7 +578,7 @@ func readProfileName(path string) string {
|
||||
}
|
||||
|
||||
// nolint: unused,unusedfunc
|
||||
func readProfileOwner(path string) (ipcauth.Identity, error) {
|
||||
func ReadProfileOwner(path string) (ipcauth.Identity, error) {
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return ipcauth.Identity{}, err
|
||||
@@ -603,7 +603,7 @@ func readProfileOwner(path string) (ipcauth.Identity, error) {
|
||||
}
|
||||
|
||||
// nolint: unused,unusedfunc
|
||||
func stampOwner(path string, owner ipcauth.Identity) error {
|
||||
func StampOwner(path string, owner ipcauth.Identity) error {
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user