14 Commits

Author SHA1 Message Date
Jocay c013a389fe feat: Implement directory validation and shell command quoting
- Added is_valid_directory function to validate directory paths, ensuring they do not contain control characters and are within a specified length.
- Introduced quote_shell_arg to safely quote shell arguments, preventing command injection.
- Created build_cd_command to generate a command for changing directories in a shell.
- Enhanced the LoginHandler to utilize a login rate limiter, preventing brute-force attacks by tracking failed login attempts.
- Implemented an EncodingCache to optimize encoding detection for SSH connections.
- Updated the UI to include an input field for specifying an initial directory upon login, with appropriate validation and hints.
- Added a quickbar in the terminal interface for easy access to copy and paste functionality.
- Introduced a toast notification system to provide feedback on copy actions.
- Refactored connection storage to encrypt passwords at rest, improving security.
- Updated various templates and styles to accommodate new features and improve user experience.
2026-08-10 00:07:52 +08:00
Sheng 7f6db649bf Support link scope ipv6 address 2019-09-19 10:55:34 +08:00
Sheng c35f801235 Support custom origin configuration 2019-01-19 16:46:25 +08:00
Sheng 682ddbf65f Removed function for detecting whether the http(s) server is open to public 2019-01-15 23:02:14 +08:00
Sheng 2e0f06e650 Fixed is_same_primary_domain 2019-01-11 15:02:30 +08:00
Sheng 5c8bd84b95 Added an option for configuring cross-origin websocket level 2019-01-10 22:09:32 +08:00
Sheng 8e4039a24a Support redirecting http to https 2018-10-21 14:07:44 +08:00
Sheng 40cf1095ff Use open_to_public to store the status of the http(s) server 2018-10-20 17:54:12 +08:00
Sheng c06bf5311a Added an option for blocking public non-https requests 2018-10-17 22:39:53 +08:00
Sheng 66ebe2ceb2 Use general method to validate ipaddress 2018-10-13 09:47:15 +08:00
Sheng 88405eddac Added to_int to utils 2018-10-10 08:49:59 +08:00
Sheng 37299468a9 Added is_valid_hostname to utils 2018-08-20 21:20:55 +08:00
Sheng e85ae1692e Added to_bytes function to utils 2018-08-20 18:36:04 +08:00
Sheng 1e4ece58c8 Added functions for validating ip and port 2018-08-10 09:23:25 +08:00