Commit Graph

80 Commits

Author SHA1 Message Date
6840a25901 change udp->tcp 2023-01-11 15:51:33 +02:00
8f39f4e907 telnet tcp->udp, https->http 2023-01-04 22:46:11 +02:00
Ni Rui
7a5dc076ff Fixed double closing of closeNotify channel which could happen during shutdown 2022-09-15 17:10:50 +08:00
NI
2340636c94 Use easier web page caching method (Remove ETag and If-Modified-Since) 2022-05-20 09:41:13 +08:00
NI
f884d7cf76 Code clean up 2022-04-15 18:49:03 +08:00
NI
0c3c4952fc Set http.Server.MaxHeaderBytes to the default value 2022-04-15 18:36:35 +08:00
NI
5d3eee1b52 Fixed misuses of fmt.Println and t.Error 2022-04-15 18:14:31 +08:00
NI
2ab2721a9c Bump copyright date 2022-02-13 17:33:52 +08:00
Tweak
e767c088cd Update controller.go 2022-02-01 21:57:08 -07:00
NI
366be28325 Revert 5d4c3873fd due to issue #70 on GitHub. Lock the min TLS version to 1.2 instead 2021-12-23 12:35:22 +08:00
NI
5d4c3873fd Only use safe ciphers in HTTPS server 2021-12-16 19:28:51 +08:00
NI
f99310cb16 Make authentication process more reliable 2021-07-10 10:11:12 +08:00
NI
7c261232dd No longer cache the landing page (/). This will resolve the problems caused by page caches 2021-05-02 10:40:06 +08:00
NI
1d05a9189b Change my public email address 2021-04-29 14:28:24 +08:00
NI
b87d5437e5 Send OPTIONS request to the WebSockets interface once per Timeout interval. This allows some deployment environment to correctly detect the status of the application 2021-04-29 14:02:52 +08:00
NI
5434ab03b2 Bump copyright date to 2021 2021-03-02 21:32:54 +08:00
NI
c6683b1311 Change the authentication workflow. This will allow Sshwifty to run on a multi-node autobalanced cluster. After deploy this version, users might have to reload the frontend page before continue using Sshwifty. 2021-03-02 20:54:58 +08:00
NI
706eb93150 Deploy the GitHub username change 2020-08-26 11:08:58 +08:00
NI
441374c0d4 Fix typo: Enviroment -> Environment 2020-08-17 12:56:03 +08:00
NI
d86c92867c Configuration: 1) Add scheme syntax support to Preset Meta; 2) Some wrong defaults has now been fixed 2020-08-13 23:04:54 +08:00
NI
13542949c2 Make application/controller/static.go the source code generate trigger instead of application/controller/static_pages.go 2020-07-18 18:33:48 +08:00
NI
15497da408 Reformat static_page_generater/main.go 2020-07-16 09:50:19 +08:00
NI
c2da4491b0 Stop gzip more file types: Text, MD 2020-07-16 09:34:32 +08:00
NI
bc7f20ebef Code clean up 2020-04-06 18:56:59 +08:00
NI
d8a599baf9 Separate invalid key and unmatched key error 2020-04-06 18:55:20 +08:00
NI
1009cd4284 Use a better method to reload command presets 2020-03-12 21:19:20 +08:00
NI
b2210ce2b6 Reconfigure Environment configuration loader as well 2020-02-23 22:03:31 +08:00
NI
e7ca6d95ed Allowing Commands to reconfigure app Configuration, this is will allow default ports to be currently added to remote presets 2020-02-23 17:23:24 +08:00
NI
9b2513c89d Clean up code inside the configuration loaders 2020-02-08 11:17:56 +08:00
NI
921b887550 Adjust message text for ErrAccessControlDialTargetHostNotAllowed 2020-02-08 11:17:16 +08:00
NI
67c99e3092 Implemented the host name auto suggestion, and added Preset feature 2020-02-07 21:34:16 +08:00
NI
edc6aeab92 Stop gzipping image/*. They will be fully compressed by a image compresser 2019-12-30 18:41:51 +08:00
NI
b5ebe6759c Update copyright date to 2020. Happy new year! 2019-12-29 14:11:54 +08:00
NI
a5696d6b63 Don't gzip woff files, as they usually already compressed 2019-12-13 14:33:47 +08:00
NI
d3c569f68d Make browserconfig.xml to be root-url accessible (Can be accessed through /browserconfig.xml). 2019-12-08 17:00:03 +08:00
NI
2356a7c155 Change static assets and websocket interface to /sshwifty/assets and /sshwifty/socket. This should allow user to map Sshwifty to a subdirectory behind a reverse proxy 2019-12-06 19:05:36 +08:00
NI
4d0b689a7d Two changes to the static file generater: 1) It now imports source file data as literal string, saves runtime conversion cost; 2) image/x-icon will no longer be compressed 2019-10-18 22:33:42 +08:00
NI
da7f06f01b Adjust favicon a bit more 2019-10-01 16:44:58 +08:00
NI
ec5099c111 More detailed debug log 2019-09-24 22:47:32 +08:00
NI
128d24d92d Add the one missing blank line 2019-09-24 22:47:13 +08:00
NI
6349d1ede5 Fixed a bug: That 4096 bytes can all be used to buffer a AES-GCM block 2019-09-20 22:07:09 +08:00
NI
a074586dcb Allowing the entire Stream payload to be relayed to the remote, not just the first part of the payload. 2019-09-19 14:56:48 +08:00
NI
020a1e8eaf Adding timeout detection to both SSH and Telnet command as well. This will prevent a dead remote connection to block backend request processing 2019-09-19 14:54:54 +08:00
NI
6aa585c228 Use more accurate size to verify payload length 2019-09-19 14:48:19 +08:00
NI
c7df33f14f Prevent SetDeadline, SetReadDeadline and SetWriteDeadline from setting up unlimited deadline, and also impose our own timeout retry mechanism. 2019-09-18 18:51:17 +08:00
NI
90db2755cd More robust way to handle write pause and resume 2019-09-16 23:21:02 +08:00
NI
d03ab083d7 Statically save Content-Type in generated files as well. 2019-09-13 14:21:24 +08:00
NI
11d6a58a36 Better Timeout in Socks5 handshake 2019-09-03 21:40:57 +08:00
NI
bf68b88919 Fix the problematic SSH handshake timeout 2019-09-02 22:21:23 +08:00
NI
b1cd29cc27 Close connection when SSH handshake fails. 2019-09-02 12:37:51 +08:00