From c4cf4bf0885c616dcbfcbb37a9b2bb3faf6d4cc3 Mon Sep 17 00:00:00 2001 From: Solomon Himelbloom <7608183+TechSolomon@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:51:44 -0800 Subject: [PATCH] Released data diode system information (#53) * docs: build requirements for `make` * fix: match MQTT client ID --- Makefile | 2 +- README.md | 1 + utility/republisher.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3f9fbc0..aa08827 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BIN_NAME=diode -BIN_VERSION=0.1.3 +BIN_VERSION=0.1.4 BIN_DATE=$(shell date +%FT%T%z) all: build diff --git a/README.md b/README.md index 822790f..8965ba4 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Scripts for verifying TCP passthrough functionality. - Clone repository: `gh repo clone acep-uaf/data-diode` - Source navigation: `cd data-diode` - Build binary: `make` + - [`build-essential`](https://packages.ubuntu.com/focal/build-essential) - CLI: `./diode [options...]` #### Branch Management diff --git a/utility/republisher.go b/utility/republisher.go index ee54b94..7b016e7 100644 --- a/utility/republisher.go +++ b/utility/republisher.go @@ -126,7 +126,7 @@ func UnencapsulatePayload(message string) string { func PublishPayload(server string, port int, topic string, message string) { location := fmt.Sprintf("tcp://%s:%d", server, port) - opts := mqtt.NewClientOptions().AddBroker(location).SetClientID("out_rev_string") + opts := mqtt.NewClientOptions().AddBroker(location).SetClientID("out_rec_string") client := mqtt.NewClient(opts) if token := client.Connect(); token.Wait() && token.Error() != nil {