Skip to content

Commit ed46426

Browse files
committed
fixing postgres port bug
1 parent 63c3af0 commit ed46426

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Mythic_CLI/Changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 0.2.12 - 2024-02-09
8+
9+
### Changed
10+
11+
- Fixed a bug where postgres wasn't exposing the port properly
12+
713
## 0.2.11 - 2024-02-09
814

915
### Changed

Mythic_CLI/src/cmd/config/vars.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package config
44

55
var (
66
// Version Mythic CLI version
7-
Version = "v0.2.11"
7+
Version = "v0.2.12"
88
)

Mythic_CLI/src/cmd/internal/serviceMetadata.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ func AddMythicService(service string) {
3838
}
3939
if mythicEnv.GetBool("postgres_bind_localhost_only") {
4040
pStruct["ports"] = []string{
41-
"127.0.0.1:${POSTGRES_PORT}:${POSTGRES_PORT}",
41+
"127.0.0.1:${POSTGRES_PORT}:5432",
4242
}
4343
} else {
4444
pStruct["ports"] = []string{
45-
"${POSTGRES_PORT}:${POSTGRES_PORT}",
45+
"${POSTGRES_PORT}:5432",
4646
}
4747
}
4848
environment := []string{

0 commit comments

Comments
 (0)