Commit Graph

59 Commits

Author SHA1 Message Date
zefie
cc88570466 WTVP does not use \r, so swapping the internal header's usage for now. May remove internal header in future update 2021-08-08 15:34:45 -04:00
zefie
514a4bf11d missed this in d4e355a0a3 2021-08-08 15:03:31 -04:00
zefie
75c59d9e56 re-add git commit to console version string 2021-08-08 14:26:17 -04:00
zefie
d4e355a0a3 fix e5d5b1e8e7 2021-08-08 14:25:05 -04:00
zefie
e5d5b1e8e7 unescape query arguments during processing 2021-08-08 14:18:50 -04:00
zefie
acd90bc66b fix some mstv sim related issues 2021-08-08 13:11:54 -04:00
zefie
6741e1e374 Merge branch 'lzpf-compression' 2021-08-08 12:57:23 -04:00
zefie
18e74dc53c update getConType with known WTV overrides 2021-08-08 12:11:19 -04:00
zefie
9c68dc5585 update version reporting to include git branch, in prep for v1.0 2021-08-08 11:18:31 -04:00
Eric MacDonald
47f54dda46 Whoopies. Needed to define things 2021-08-07 19:49:45 -04:00
Eric MacDonald
72dcce0f8f Use uncompressed length for Content-length like WNI (fixes HTML pages) 2021-08-07 19:46:15 -04:00
Eric MacDonald
1bc7cadac5 Remove other junk not needed 2021-08-07 19:44:38 -04:00
Eric MacDonald
8775eba32e Remove debug log 2021-08-07 19:44:22 -04:00
Eric MacDonald
a2f3ce67a1 Using session capabilities to enable compression now 2021-08-07 19:43:22 -04:00
zefie
d5fa489b9c some more fixes to the registration/login system 2021-08-07 19:41:33 -04:00
zefie
12be904b5c enable config flag for compression, default false (until working fully) 2021-08-07 19:20:42 -04:00
zefie
c09d0d6989 respect Connection: close 2021-08-07 18:34:56 -04:00
zefie
00f80c9ea5 Merge branch 'lzpf-compression'
- fix issues caused by my rebasing
2021-08-07 17:27:28 -04:00
zefie
2d1893e450 revert sendToClient() to the state at which eMac merged his changes 2021-08-07 17:04:17 -04:00
zefie
f15f377f8e v0.9.12 - WILL REBASE - BE WARNED
- convert post_data to query if valid query data
- wtv-register system
- Store Session data as JSON flat file
- wtv-cookie support
- spent way too much time on a page no one will read
- move filterSSID to WTVClientSessionData
- disable compression until fixed
- do not delete WTVSec on last socket, instead recreate on prereg
- set 'wtv-bypass-proxy' to false
- rework header whitelist system for HTTP(s) proxy
- clean up SSID session data only if client is not seen for 3 minutes
- add shouldWeCompress() function
- add additional headers to wtv-setup:/get
- add initial blank wtv-music:/get-playlist
2021-08-07 17:00:26 -04:00
Eric MacDonald
36a2aebe17 Remove wtv-lzpf detection to do stream comp outside sendToClient 2021-08-07 16:43:48 -04:00
Eric MacDonald
7a69d3e8da Remove Zefie's chunking and async stuff. Will revisit later. Fixing alg first. 2021-08-07 15:11:18 -04:00
zefie
3da637dfb0 update: compression system: make asynchronous 2021-08-06 16:24:55 -04:00
zefie
ad16a04c55 update: do not delete WTVSec on last socket, instead recreate on prereg
update: clean up SSID session data only if client is not seen for 3 minutes
update: add shouldWeCompress() function
update: tweak lzpf (still corrupted)
update: rename wtv-setup:/get to wtv-setup:/get-settings
update: add additional headers to wtv-setup:/get-settings
update: add initial blank wtv-music:/get-playlist
2021-08-06 14:05:27 -04:00
Eric MacDonald
849467939c Change scope of clen so we can use and abuse it 2021-08-06 02:02:22 -04:00
Eric MacDonald
f12717bfef Add Lzpf compression 2021-08-06 01:42:27 -04:00
zefie
743989d4f0 update: WTVClientCapabilities: add unknown bits instead of logging error
update: fix flashrom system
update: webone example config
update: app.js: more 'binary block' exclusions
update: fix tellyscript folder name for case-sensitive filesystems
2021-08-06 01:13:35 -04:00
zefie
60dc9bcc4c update: app.js: enable graceful shutdown with SIGTERM 2021-08-05 17:59:53 -04:00
zefie
5d48c58c1d http(s) proxy updates:
- allow ~ character
- fix HTTPS when using HTTP proxy
- include example webone.conf for external HTTP Proxy
2021-08-05 16:54:39 -04:00
zefie
3187236c27 update: app.js: getServiceString overrides should only be temporary for that request 2021-08-03 23:09:48 -04:00
zefie
6e9e84abf0 v0.9.9
- update: config.json: add DoNotEncrypt flags to http and https
- update: app.js: add ability to override service flags when using getServiceString
- update: app.js: add ability to disable 'wtv-star' while keeping 'wtv-*'
- update: app.js: add internal header 'minisrv-use-carriage-return', set to 'false' to disable `\r` in headers
- implement bf0app flashrom functionality
2021-08-02 14:47:11 -04:00
zefie
150f0253b8 v0.9.8
fix: app.js: Use \r\n, fix connections= service setting
update: config.json: fix some service flags that were misset
Add ServiceFlags.txt: brief description of wtv-service flags
update: Moved tellyscripts to wtv-1800:/preregister
update: fixed bug where "send_tellyscript was undefined"
update: initial work on bf0app flashrom support (incomplete)
2021-07-29 19:21:22 -04:00
zefie
63eeb3245a update: app.js: add special filtering for Dreamcast clients 2021-07-26 14:02:05 -04:00
zefie
822136f1ea update: app.js: add logging errors to file 2021-07-26 07:59:02 -04:00
zefie
41b4deb831 update: add 'hasCap(flag)' function to WTVClientSessionData for easier client-capabilities checking (see wtv-home/home.js for an example) 2021-07-26 06:12:53 -04:00
zefie
cef29832e3 minor update: app.js: fix found file path in log on windows 2021-07-25 10:12:36 -04:00
zefie
a5806e8581 v0.9.6
- update: add initial wtv-capability-flags decoding, as well as wtv-tricks:/info demonstration
- update: rename classes
- minor update: quirky 'Special Thanks' in each custom class.
- minor update: notice about Initial Shared Key and multiple minisrvs
- update: wtv-music:/demo/index: update wtv-star image paths
- update: app.js: fix unencrypted post
- update: app.js: improve buffering and cleanup in attempt to fix occasional 'double-up' bug
- update: info.js: remove debug dump of capabilities
- Update: add test.js, syntax-testing script for `npm test`
- Update: wtv-chat:/home experimental nick change page thanks to MattMan (chat still giving issues on real boxes, works in Viewer)
- Update: README.md: Add ways to support the project
2021-07-25 08:56:52 -04:00
zefie
89f1b896e1 - update: app.js: add really long timeout for closing missed sockets
- update: app.js: fix for minibrowser connectivity
- update: app.js: enhance security
- update: wtv-home:/home: fix wtv-needs-upgrade -> wtv-need-upgrade
- update: wtv-head-waiter:/login-stage-two: do not send wtv-settings:/get to minibrowser
- update: wtv-1800:/preregister: Disconnect and clean up all previous sockets for the connecting SSID when hitting preregister. Also re-create wtvsec_login.
2021-07-24 12:34:56 -04:00
zefie
6ced1443f0 v0.9.5
- major update: app.js: rewrite socket handling to stream data (fix issues POSTing with shoddy dialup, namely fix wtv-update:/sync issues)
- update: wtv-home:/home: remove broken irc test, add links to DiskHax and VFatHax, remove URL Accessor form from MiniBrowser because it doesn't work
- update: wtv-update:/sync: skip file if the Content-length matches the client and the client file is equal or newer, since client is not storing wtv-checksum for some reason. Client file time is set to when the client received the file last, and not actually when the file was modified on our end
2021-07-24 04:32:00 -04:00
zefie
d2a6ea0097 fix: wtv-log:/log
add: wtv-chat
add: wtv-setup
2021-07-23 09:38:47 -04:00
zefie
adca09f9e3 fix: http(s) proxy: handle socks HostUnreachable error 2021-07-22 07:52:16 -04:00
zefie
b5b0e427e4 update: http(s) proxy: do not send internal 'wtv-connection-close' header to client 2021-07-22 07:28:36 -04:00
zefie
5b2d25ebd5 app.js: better minibrowser session cleanup 2021-07-22 06:37:39 -04:00
zefie
192162831a fix: clean up socket session data on socket error 2021-07-22 06:10:05 -04:00
zefie
cf00851798 v0.9.4
- feature: add SSID whitelist/blacklist as well as IP based SSID auth
- Add user_config_README.md
- Update user_config.example.json
- Update README.md
- update: wtv-1800:/finish-prereg: send tellyscript on relogin if tellyscripts are enabled, and wtv-script-id == 0 (no tellyscript)
- Allow definition of custom ServiceVault paths
- feature: app.js: add `bind_ip` option to specify an IP to bind to, instead of `0.0.0.0`
- feature: custom service logos and better wtv-home:/splash
2021-07-22 04:25:48 -04:00
zefie
45bbcecb72 v0.9.3
- fix: wtv-home:/home: remove `nostatus` to enable loading progress bar for outgoing links

- fix: wtv-1800:/finish-prereg: swap error message location for better debugging

- fix: app.js: Properly clean up old sockets
2021-07-21 23:22:43 -04:00
zefie
897bf10abb v0.9.2
wtvsec: use initial key for ticket signing
update: initial work for future ability to update wtv-ticket to client
update: wtv-flashrom: use zefie server only if file does not exist locally (allows both zefie server roms and local roms)
update: wtv-flashrom:/get-lc2-path: experimental 'Cancel Update' button
fix: wtv-tricks:/blastcache: return_to was not unescaped
2021-07-21 12:52:54 -04:00
zefie
59bfcc457f Revert "update: change user_config.json to be a complete override instead of hacky override. copy config.json to user_config.json to get started."
Instead, fix it.
2021-07-20 22:33:43 -04:00
zefie
6da7da5c34 update: change user_config.json to be a complete override instead of hacky override. copy config.json to user_config.json to get started. 2021-07-20 22:12:25 -04:00
zefie
8bc4d29815 v0.9.1
- fix: throw proper error if wtv-update:/sync called without arguments
- feature: Support to route all HTTP proxied requests over a SOCKS proxy (eg Tor or VPN)
- feature: Psuedo-HTTPS (WebTV can now visit HTTPS URLs via proxy, but
  we do not use SSL encryption when sending back to the WebTV)
- fix: header issue with login-stage-two.js
- update: wtv-update/sync: allow multiple groups in sync diskmap, fix md5 comparsion
- update: wtv-home:/home: added connection speed
- Renamed processSSID to filterSSID
- Documented and rewrote some functions
2021-07-20 20:57:41 -04:00