diff --git a/wap/pkg/config/config.go b/wap/pkg/config/config.go index 9414a5f7..faaf0f62 100644 --- a/wap/pkg/config/config.go +++ b/wap/pkg/config/config.go @@ -46,7 +46,7 @@ func init() { PROJECT_NAME = getEnv("PROJECT_NAME", "Box Firmware") CUSTOM_PROPERTIES_FILE = - getEnv("CUSTOM_PROPERTIES_FILE", "/var/box_props.json") + getEnv("CUSTOM_PROPERTIES_FILE", "/internal/box_props.json") API_URL = getEnv("API_URL", "http://localhost:3500") API_PORT = getEnv("API_PORT", "3500") diff --git a/wap/pkg/server/server.go b/wap/pkg/server/server.go index a05fdc65..574a2c0d 100644 --- a/wap/pkg/server/server.go +++ b/wap/pkg/server/server.go @@ -396,6 +396,7 @@ func exchangePeersHandler(w http.ResponseWriter, r *http.Request) { err = config.WriteProperties(map[string]interface{}{ "client_peer_id": peerID, "blox_peer_id": bloxPeerID, + "blox_seed": bloxPrivKey, }) if err != nil { http.Error(w, "failed to write the properties", http.StatusBadRequest)