diff --git a/pbsapi.go b/pbsapi.go index 4352e2f..32be883 100644 --- a/pbsapi.go +++ b/pbsapi.go @@ -348,8 +348,8 @@ func (pbs *PBSClient) Connect(reader bool) { pbs.manifest.BackupTime = time.Now().Unix() pbs.manifest.BackupType = "host" - hostname, _ := os.Hostname() if pbs.manifest.BackupID == "" { + hostname, _ := os.Hostname() pbs.manifest.BackupID = hostname } pbs.client = http.Client{