gitea.tea/modules/utils
GyeongHo Kim 511884b2af
fix(login): default SSH host to URL hostname
Use the server URL hostname when a login has no explicit SSHHost configured, so an HTTP(S) port from the Gitea URL is not reused as the SSH endpoint.

Add shared SSH host normalization and resolution helpers with tests for host and host:port values.

Signed-off-by: GyeongHo Kim <gyeongho.dev@proton.me>
2026-07-29 14:05:35 +09:00
..
draft.go feat(pulls): add --draft to create and --draft/--ready to edit (#1008) 2026-05-31 02:50:32 +00:00
draft_test.go feat(pulls): add --draft to create and --draft/--ready to edit (#1008) 2026-05-31 02:50:32 +00:00
input.go Code Cleanup (#869) 2026-02-02 22:39:26 +00:00
parse.go spdx (#581) 2023-09-08 01:40:02 +00:00
parse_test.go spdx (#581) 2023-09-08 01:40:02 +00:00
path.go refactor: code cleanup across codebase (#947) 2026-04-08 03:38:49 +00:00
ssh_host.go fix(login): default SSH host to URL hostname 2026-07-29 14:05:35 +09:00
ssh_host_test.go fix(login): default SSH host to URL hostname 2026-07-29 14:05:35 +09:00
utils.go spdx (#581) 2023-09-08 01:40:02 +00:00
validate.go refactor: code cleanup across codebase (#947) 2026-04-08 03:38:49 +00:00