Skip to content

Commit

Permalink
fixing postgres port bug
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Feb 10, 2024
1 parent 63c3af0 commit ed46426
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Mythic_CLI/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Mythic_CLI/src/cmd/config/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package config

var (
// Version Mythic CLI version
Version = "v0.2.11"
Version = "v0.2.12"
)
4 changes: 2 additions & 2 deletions Mythic_CLI/src/cmd/internal/serviceMetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ed46426

Please sign in to comment.