Skip to content

Commit

Permalink
fix: Allow connection to servers without explicit port
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueSkrillor committed Dec 14, 2023
1 parent 6c207bb commit 7fab81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func performVulnerabilityScan(address string, scanMode ScanMode) (*TerrapinVulne
func formatAddress(address string, mode ScanMode) string {
formatted := strings.TrimSpace(address)
if mode == ServerScan && !strings.Contains(address, ":") {
address += ":22"
formatted = address + ":22"
} else if mode == ClientScan {
if address == "" {
formatted = "127.0.0.1:2222"
Expand Down

0 comments on commit 7fab81f

Please # to comment.