Skip to content

Commit ffb5a4f

Browse files
committed
slight update to rpfwd timeouts
1 parent 8098cee commit ffb5a4f

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.MD

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

7-
## [3.3.0-rc14] - 2024-08-05
7+
## [3.3.0-rc15] - 2024-08-05
88

99
### Changed
1010

1111
- Updated the login function to return the user's utc time preference
1212
- Added button to show/hide deleted consuming containers
13+
- Shortened the dial time for rpfwd connections to 5s instead of 30s
1314

1415
## [3.3.0-rc13] - 2024-08-05
1516

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0-rc14
1+
3.3.0-rc15

mythic-docker/src/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0-rc14
1+
3.3.0-rc15

mythic-docker/src/rabbitmq/utils_proxy_traffic.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,9 @@ func (p *callbackPortUsage) manageConnections() {
885885
//logging.LogInfo("send message along to acceptedConnection's messagesFromAgent", "chan", newMsg.ServerID)
886886
} else {
887887
// got a new serverID from the agent that we aren't tracking, so we need to make a new connection
888-
if conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", p.RemoteIP, p.RemotePort)); err != nil {
888+
d := net.Dialer{Timeout: 5 * time.Second}
889+
conn, err := d.Dial("tcp", fmt.Sprintf("%s:%d", p.RemoteIP, p.RemotePort))
890+
if err != nil {
889891
logging.LogError(err, "Failed to connect to remote for rpfwd", "remote_ip", p.RemoteIP, "remote port", p.RemotePort)
890892
interceptProxyToAgentMessageChan <- interceptProxyToAgentMessage{
891893
Message: proxyToAgentMessage{

0 commit comments

Comments
 (0)