Nayeon Keum
5d35cf8efc
[feat/nkeum-dev] Add: placeholders
2023-08-02 19:55:38 +09:00
Nayeon Keum
f524f463fc
[feat/nkeum-dev] Fix: customize index.html
2023-03-24 14:23:37 +09:00
Sheng
04bd859f15
Bump version to 1.6.1
2022-11-21 17:12:05 +08:00
Sheng
2a46b52eac
Close websocket if there is no corresponding ssh connection
2022-11-21 14:52:38 +08:00
Sheng
9a7cfe767c
Use uuid4 to generate id for Python3.5 Python3.4 Python2.7
2022-11-21 14:32:41 +08:00
Shengdun Hua
a3cb94b45e
Merge pull request #306 from klarose/handle-closed-worker
...
do not process message for closed workers
2022-11-21 14:01:21 +08:00
Kyle Larose
f0e2ddb821
do not process message for closed workers
...
WsockHandler stores a weak reference to the ssh backend worker. The
worker closes itself if the backend connection closes (e.g. the user
exists the ssh session). That happens in parallel to the websocket
handler processing messages, so it is possible for a message to arrive
when the worker no longer has any strong references, leading to an
exception being thrown.
Handle this case by treating the None worker the same way we do invalid
messages: by simply returning.
2022-11-18 08:55:03 -05:00
Kyle Larose
1b62f379ed
use secrets to generate worker id
...
The worker ID right now is typically based off the address of an object
in memory. This could be guessed. While the worker is tied to a
specific IP, there is a chance an off-path attacker could be hosted
behind the same IP as the caller. They could possibly guess the worker
id of an unclaimed session by observing the sequence of IDs presented to
themselves, leading to them gaining access to an already authenticated
SSH session.
Use the python secrets module to generate a cryptographically secure
token to use as the worker ID. This shoud be much harder to guess.
2022-11-17 15:26:05 -05:00
Sheng
ee24eb7f65
Fixed a bug of getting custom font url
2022-10-30 14:37:11 +08:00
Sheng
a9d959ffb7
Bump to version 1.6.0
2022-05-02 20:07:32 +08:00
Rocco Lucia
3c0b0fb332
65535/tcp is a valid port number
2022-03-09 18:25:09 +01:00
Sheng
86c98dacc4
Use decodeURIComponent instead of decodeURI
2022-02-23 05:14:31 +08:00
Sheng
11bd7fea47
Moved some codes into else block
2022-02-20 21:37:16 +08:00
Carlos Martínez
c89fcc1da9
fix line length
2022-02-13 11:04:13 -03:00
Carlos Martínez
00a4a77243
timeout on exec_command
2022-02-13 10:45:06 -03:00
fakeyw
e25751c132
found the way to change font color
2021-09-03 16:31:07 +08:00
Sheng
ddbb2c3fb1
Ignore invalid font size
2021-08-25 19:18:28 +08:00
Tsung-en Hsiao
e4657761c9
Add fontsize url parameter
2021-08-23 07:01:03 +00:00
Sheng
7b8f473ba6
Changed the type of two options into float
2020-10-07 20:36:43 +08:00
Sheng
d54f5b547a
Use options.delay instead of DELAY
2020-10-07 20:29:13 +08:00
Sheng
063b0ee5cf
Bump version to 1.5.3
2020-10-02 13:55:56 +08:00
Sheng
760c74a2f7
Use selector event loop for Python 3.8+ on windows
2020-10-02 11:29:48 +08:00
Sheng
19d816f991
Check if channel is closed first when error occurs on reading or writing
2020-09-16 21:01:53 +08:00
Sheng
51d527fe75
Fixed typo
2020-04-12 21:25:21 +08:00
Sheng
884ac27d5c
Bump version to 1.5.2
2020-03-22 17:24:28 +08:00
Sheng
815783d6b0
Use warning instead of warn
2020-03-22 17:02:04 +08:00
Sheng
5f4978a994
Set utf-8 as the default encoding if we cannot detect it
2020-03-22 14:40:49 +08:00
Sheng
795875807b
Added two options for user configuration
2020-02-23 11:11:41 +08:00
Sheng
32d7236630
To generate more friendly error message
2020-02-14 07:59:14 +08:00
CHunter
6be01b94b6
additional help description
...
For the --encode option
2020-02-13 22:59:31 +03:00
Sheng
f2c9766c65
Bump version to 1.5.1
2020-02-13 20:19:34 +08:00
Sheng
83f739ca35
Added test for check_encoding_setting
2020-02-13 10:15:29 +08:00
Sheng
7110def747
Added an option for specifying the default character encoding of your ssh servers
2020-02-13 09:40:42 +08:00
Sheng
8d9eeb0bc1
Updated index.html template
2020-01-23 19:20:43 +08:00
Sheng
8901eb0580
Added class Font
2020-01-23 19:15:39 +08:00
Sheng
dcbd4a575a
Added fonts directory
2020-01-23 17:25:51 +08:00
Sheng
b805605278
Eased custom font configuration
2020-01-23 16:50:14 +08:00
Sheng
359a91b5e8
Fixed a bug of url argument value containing an equal sign
2020-01-14 17:16:02 +08:00
Sheng
4f55430525
Bump version to 1.5.0
2019-12-11 09:42:43 +08:00
Sheng
ccb40d2bed
Support openssh new format key
2019-12-11 09:32:42 +08:00
Sheng
651ebe16b5
Minified xterm.css
2019-12-10 17:04:44 +08:00
Trey Dempsey
d47cefee78
Fixed term.destroy renamed to dispose.
2019-12-03 22:46:27 +00:00
Trey Dempsey
e2739a6829
Upgraded to xterm.js 4.2.0
2019-12-03 22:24:10 +00:00
Sheng
fc30ead69e
Refactoring
2019-10-09 11:40:07 +08:00
Sheng
049baad909
Try to detect the encoding set by the user
2019-10-06 15:18:23 +08:00
Sheng
afcf8b52cc
Validate the result of locale charmap
2019-10-05 13:18:53 +08:00
Sheng
1fe361f601
Changed default listening address
2019-09-19 11:07:27 +08:00
Sheng
7f6db649bf
Support link scope ipv6 address
2019-09-19 10:55:34 +08:00
Sheng
4f9b5e2029
Added get_context_addr method
2019-09-19 09:29:24 +08:00
Sheng
15740538f7
Fix getting addr from an ipv6 context address
2019-09-19 09:09:21 +08:00