From 9f225761365be961e776043bad9972c55bb67f7e Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 14 Aug 2023 13:25:42 -0700 Subject: [PATCH 1/2] fix lowercase hostname --- agent/agent.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 4020052..2f94140 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -104,6 +104,11 @@ func New(logger *logrus.Logger, version string) *Agent { winTempDir := defaultWinTmpDir winRunAsUserTmpDir := defaultWinTmpDir + hostname, err := os.Hostname() + if err != nil { + hostname = info.Hostname + } + var pybin string switch runtime.GOARCH { case "amd64": @@ -201,7 +206,7 @@ func New(logger *logrus.Logger, version string) *Agent { } return &Agent{ - Hostname: info.Hostname, + Hostname: hostname, BaseURL: ac.BaseURL, AgentID: ac.AgentID, ApiURL: ac.APIURL, From 0777195423cd26fe2f39e787f5e94c4689671e0e Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 14 Aug 2023 13:34:38 -0700 Subject: [PATCH 2/2] bump version --- build/rmm.exe.manifest | 2 +- build/setup.iss | 2 +- main.go | 2 +- versioninfo.json | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/rmm.exe.manifest b/build/rmm.exe.manifest index 2071286..a1ed766 100644 --- a/build/rmm.exe.manifest +++ b/build/rmm.exe.manifest @@ -3,7 +3,7 @@ diff --git a/build/setup.iss b/build/setup.iss index 720e4eb..7b18ad4 100644 --- a/build/setup.iss +++ b/build/setup.iss @@ -1,5 +1,5 @@ #define MyAppName "Tactical RMM Agent" -#define MyAppVersion "2.4.10" +#define MyAppVersion "2.4.11" #define MyAppPublisher "AmidaWare LLC" #define MyAppURL "https://github.com/amidaware" #define MyAppExeName "tacticalrmm.exe" diff --git a/main.go b/main.go index 52730fe..56dc178 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,7 @@ import ( ) var ( - version = "2.4.10" + version = "2.4.11" log = logrus.New() logFile *os.File ) diff --git a/versioninfo.json b/versioninfo.json index 2d29460..0d85476 100644 --- a/versioninfo.json +++ b/versioninfo.json @@ -3,13 +3,13 @@ "FileVersion": { "Major": 2, "Minor": 4, - "Patch": 10, + "Patch": 11, "Build": 0 }, "ProductVersion": { "Major": 2, "Minor": 4, - "Patch": 10, + "Patch": 11, "Build": 0 }, "FileFlagsMask": "3f", @@ -22,14 +22,14 @@ "Comments": "", "CompanyName": "AmidaWare LLC", "FileDescription": "Tactical RMM Agent", - "FileVersion": "v2.4.10.0", + "FileVersion": "v2.4.11.0", "InternalName": "tacticalrmm.exe", "LegalCopyright": "Copyright (c) 2023 AmidaWare LLC", "LegalTrademarks": "", "OriginalFilename": "tacticalrmm.exe", "PrivateBuild": "", "ProductName": "Tactical RMM Agent", - "ProductVersion": "v2.4.10.0", + "ProductVersion": "v2.4.11.0", "SpecialBuild": "" }, "VarFileInfo": {