Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
* | Allow empty options in redis token source string when using default values | Javier Cacheiro | 2023-01-19 | 1 | -4/+21 | |
| | ||||||
* | Token Redis: Support both json and plain text tokens | Javier Cacheiro | 2023-01-19 | 1 | -8/+37 | |
| | ||||||
* | Token Redis source: add optional redis port, redis database and redis password | Javier Cacheiro | 2023-01-19 | 1 | -10/+45 | |
| | ||||||
* | Remove simplejson dependency: use json module from stdlib. | Javier Cacheiro | 2023-01-19 | 1 | -7/+6 | |
| | | | | Add missing redis dependency. | |||||
* | Merge branch 'master' of https://github.com/shiomax/websockify | Pierre Ossman | 2022-12-22 | 2 | -34/+78 | |
|\ | ||||||
| * | Add option to listen to unix socket | max | 2022-12-14 | 2 | -34/+78 | |
| | | ||||||
* | | Insert rebinder at the head of the (possibly empty) LD_PRELOAD pathlist, | Adam Tilghman | 2022-11-16 | 1 | -1/+4 | |
| | | | | | | | | required for use cases relying on other preloaded libraries e.g. nss_wrapper. | |||||
* | | Don't include default message to send_error() | Pierre Ossman | 2022-11-16 | 1 | -3/+3 | |
| | | | | | | | | Python can provide this for us, so avoid duplication. | |||||
* | | Remove logging from handle_upgrade() | Linn Mattsson | 2022-11-08 | 1 | -2/+0 | |
| | | | | | | | | | | | | The logging should be handled directly in send_response() instead, which is the default of Python's built-in send_response(). Remove this manual logging to avoid logging the same call twice. | |||||
* | | Add new websocket class HttpWebSocket | Linn Mattsson | 2022-11-08 | 2 | -4/+21 | |
| | | | | | | | | | | | | This class acts as a glue between websocket and http functionality by taking a 'request_handler' and using its functions for send_response(), send_header() and end_headers(). | |||||
* | | Make websocket's API more intuitive | Linn Mattsson | 2022-11-08 | 1 | -15/+27 | |
| | | | | | | | | | | | | | | | | Functions connect() and accept() are using http functionality, like sending requests and headers. Let's create separate functions with more intuitive names for these calls. This allows subclasses to override these functions, as well as makes the code easier to understand at a glance. | |||||
* | | expose --file-only option to disable dir listing | Manoj Ghosh | 2022-10-18 | 1 | -0/+2 | |
| | | ||||||
* | | Merge branch 'master' of https://github.com/msnatepg/websockify | Pierre Ossman | 2022-10-10 | 1 | -0/+22 | |
|\ \ | ||||||
| * | | ensure that queues are empty when closing connections | Maximilian Sesterhenn | 2022-10-07 | 1 | -0/+22 | |
| | | | ||||||
* | | | Merge branch 'verbose_logging' of https://github.com/javicacheiro/websockify | Pierre Ossman | 2022-08-18 | 1 | -4/+3 | |
|\ \ \ | |/ / |/| | | ||||||
| * | | When using verbose set root log level to DEBUG | Javier Cacheiro | 2022-05-03 | 1 | -4/+3 | |
| | | | ||||||
* | | | Support for jwcrypto>=1.3 | Javier Cacheiro | 2022-05-25 | 1 | -2/+2 | |
|/ / | ||||||
* | | Add more alternatives to usage string | Pierre Ossman | 2022-04-22 | 1 | -0/+4 | |
| | | | | | | | | | | | | If you use a token plugin, or a Unix socket target, then you should no longer specify a target on the command line. Add these to the usage string to make this clear. | |||||
| | | ||||||
| \ | ||||||
*-. \ | Merge branches 'use_logging' and 'fix_logging_configuration' of ↵ | Pierre Ossman | 2022-04-14 | 2 | -31/+38 | |
|\ \ \ | |_|/ |/| | | | | | https://github.com/javicacheiro/websockify | |||||
| | * | Apply configuration to the root logger | Javier Cacheiro | 2022-04-13 | 1 | -8/+11 | |
| |/ |/| | ||||||
| * | Use logging instead of directly printing messages to sys.stderr | Javier Cacheiro | 2022-04-13 | 1 | -23/+27 | |
|/ | ||||||
* | Merge branch 'sisou/split-tokens-tab' of https://github.com/sisou/websockify | Pierre Ossman | 2021-04-16 | 1 | -1/+2 | |
|\ | ||||||
| * | Split token file by any whitespace after the colon, not just a space | Sören Schwert | 2020-07-28 | 1 | -1/+2 | |
| | | | | | | | | | | With the current parser logic, only tokens and servers that are separated by _exactly_ a colon and a space `: ` are detected as tokens. But when formatting one's token file with tabs, this breaks. This commit changes the split characters to be a regular expression that matches all forms of whitespace, including spaces and tabs. | |||||
* | | Use older PROTOCOL_SSLv23 instead of PROTOCOL_TLS | Pierre Ossman | 2021-02-08 | 1 | -3/+3 | |
| | | | | | | | | We need to support Python older than 3.6, so use the older name. | |||||
* | | add details on format of redis and leave port as number | PexMor | 2021-02-07 | 1 | -7/+38 | |
| | | ||||||
* | | Added JWT nbf, not before | Javier Prieto | 2021-01-27 | 1 | -0/+6 | |
| | | ||||||
* | | Added exp claim for JWT token | Javier Prieto | 2021-01-27 | 1 | -0/+7 | |
| | | ||||||
* | | Use frombytes() instead of fromstring() | Pierre Ossman | 2020-12-14 | 1 | -4/+4 | |
| | | | | | | | | | | Both the Python library and NumPy have changed the names of these functions to better match the new bytes data type it actually uses. | |||||
* | | Remove support for older Python | Pierre Ossman | 2020-12-14 | 7 | -182/+78 | |
| | | | | | | | | | | All active distributions should now support at least Python 3.4, so let's clean things up by removing older compatibility code. | |||||
* | | Add more search paths for rebind.so | Pierre Ossman | 2020-12-04 | 1 | -0/+1 | |
| | | | | | | | | | | If we're run as a module then sys.argv[0] will be the main module, not some startup script. | |||||
* | | fix a typo | Ryo Ota | 2020-11-18 | 1 | -1/+1 | |
| | | ||||||
* | | fixed a bug in the function of send_frames. | JasonYang | 2020-11-10 | 1 | -1/+1 | |
| | | ||||||
* | | Require same arguments on insufficient socket space | Pierre Ossman | 2020-09-30 | 2 | -21/+72 | |
| | | | | | | | | | | | | | | | | This matches the behaviour of SSLSocket, which we are trying to mimic. It also closely matches the behaviour of normal Socket which can be assumed to not have sent anything if an error occurs. We might actually send some data, but the caller cannot really see that and must call us again as if no data was sent. | |||||
* | | Add type checking when sendning data | Pierre Ossman | 2020-09-30 | 1 | -0/+9 | |
| | | | | | | | | | | We use this in various ways so add an early check to make things clear in case anything is called incorrectly. | |||||
* | | Allow sending empty messages | Pierre Ossman | 2020-09-30 | 1 | -2/+4 | |
| | | | | | | | | | | | | This is perfectly valid in the protocol, and may be meningful to some applications. However send() is still stream oriented so it will ignore an empty buffer. | |||||
* | | Fix bad reset of fragmented frame | Pierre Ossman | 2020-08-21 | 1 | -1/+1 | |
| | | | | | | | | The Python 2/3 binary data type compatibility hack was backwards here. | |||||
* | | Convert old print statement into function | Sören Schwert | 2020-07-28 | 1 | -1/+1 | |
|/ | | | For Python 3 compatibility. | |||||
* | Add UnixDomainSocketDirectory token plugin | Feng Ye | 2020-03-18 | 1 | -1/+29 | |
| | ||||||
* | Make sure port is a simple string (again) | Pierre Ossman | 2020-02-27 | 1 | -2/+3 | |
| | | | | | The redis token plugin also needs to make sure the port string isn't unicode for compatibility with Python 2.x. | |||||
* | Log connection errors better | Pierre Ossman | 2020-02-27 | 1 | -3/+3 | |
| | ||||||
* | Make sure the port is a simple string | Pierre Ossman | 2019-07-03 | 1 | -2/+4 | |
| | | | | | | | | getaddrinfo() gladly allows unicode for the host, but the port must be in ascii (e.g. "https"). Make sure this is properly converted before we pass it on. Patch by @caderize on GitHub. | |||||
* | Add a __main__.py file for invocation as a module | Skia | 2019-06-13 | 1 | -0/+4 | |
| | | | | | This file allows an easy invocation of websockify as a module, which is handy when running into shebang issues (https://github.com/pypa/virtualenv/issues/596). With this patch, `python -m websockify ...` has just the same behavior as `./run ...`. | |||||
* | Make TokenRedis optional | Pierre Ossman | 2019-05-24 | 1 | -17/+18 | |
| | | | | | | Most installations will not have redis or simplejson installed, so avoid having them as a hard requirement unless actually using the TokenRedis plugin. | |||||
* | [websocketproxy] Fixed base class call to process_request() when using | Giuseppe Corbelli | 2019-05-15 | 1 | -1/+1 | |
| | | | | ThreadingMixIn | |||||
* | Merge branch 'master' of https://github.com/PexMor/websockify | Pierre Ossman | 2019-05-09 | 2 | -1/+21 | |
|\ | ||||||
| * | novnc redis backed token_plyugins.py | PexMor | 2019-04-29 | 2 | -1/+21 | |
| | | ||||||
* | | Use client IP in logs, not host | Pierre Ossman | 2019-04-25 | 1 | -1/+1 | |
|/ | | | | | | This is the more common behaviour, and it is also more reliable as it may require some time to look up hostnames and they may change over time. | |||||
* | Re-enable Windows support | Pierre Ossman | 2019-04-02 | 1 | -3/+0 | |
| | | | | It works well enough now with the recent fixes and a modern Python. | |||||
* | Use ThreadingMixIn for the simple server | Pierre Ossman | 2019-04-02 | 1 | -3/+3 | |
| | | | | | ForkingMixIn isn't available on Windows. This is the simple server without features, so use ThreadingMixIn to keep things consistent. | |||||
* | Rename certificate key password option | Tommy Brunn | 2019-03-04 | 2 | -4/+4 | |
| |