From ed464263cb00021959b49eda595c7a12471650d5 Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Fri, 9 Feb 2024 21:01:24 -0600 Subject: [PATCH] fixing postgres port bug --- Mythic_CLI/Changelog.md | 6 ++++++ Mythic_CLI/src/cmd/config/vars.go | 2 +- Mythic_CLI/src/cmd/internal/serviceMetadata.go | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Mythic_CLI/Changelog.md b/Mythic_CLI/Changelog.md index 859cdf0ec..e4ebcf2e3 100644 --- a/Mythic_CLI/Changelog.md +++ b/Mythic_CLI/Changelog.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.2.12 - 2024-02-09 + +### Changed + +- Fixed a bug where postgres wasn't exposing the port properly + ## 0.2.11 - 2024-02-09 ### Changed diff --git a/Mythic_CLI/src/cmd/config/vars.go b/Mythic_CLI/src/cmd/config/vars.go index 96c251db9..c4d54d1af 100644 --- a/Mythic_CLI/src/cmd/config/vars.go +++ b/Mythic_CLI/src/cmd/config/vars.go @@ -4,5 +4,5 @@ package config var ( // Version Mythic CLI version - Version = "v0.2.11" + Version = "v0.2.12" ) diff --git a/Mythic_CLI/src/cmd/internal/serviceMetadata.go b/Mythic_CLI/src/cmd/internal/serviceMetadata.go index 9bff1da6e..b723bd792 100644 --- a/Mythic_CLI/src/cmd/internal/serviceMetadata.go +++ b/Mythic_CLI/src/cmd/internal/serviceMetadata.go @@ -38,11 +38,11 @@ func AddMythicService(service string) { } if mythicEnv.GetBool("postgres_bind_localhost_only") { pStruct["ports"] = []string{ - "127.0.0.1:${POSTGRES_PORT}:${POSTGRES_PORT}", + "127.0.0.1:${POSTGRES_PORT}:5432", } } else { pStruct["ports"] = []string{ - "${POSTGRES_PORT}:${POSTGRES_PORT}", + "${POSTGRES_PORT}:5432", } } environment := []string{