-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Async support - Added RMF content-type - Better file extension detection - Clarify installation instructions - Update README.md - Remove encryption keys from wtv-home:/home - Decode URI for support for files with urlencoded elements - Fixed MSTV Sim compatiblity - Fix a typo - Add nobind feature to configure external services - Add url accessor to wtv-home:/home for non-internal builds - Add wtv-tricks:/access?url= - Very initial HTTP Proxy work (won't work yet)
- Loading branch information
Showing
20 changed files
with
353 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// willie is just a graphical frontend to a list of ROMs | ||
// the rest of the scripts should work if you manually link to a ROM, and actually have it. | ||
|
||
|
||
var proxy_query = ''; | ||
if (query['flash']) delete query['flash']; | ||
if (query['vflash']) delete query['vflash']; | ||
|
||
for (const [key, value] of Object.entries(query)) { | ||
proxy_query += "&" + key + "=" + value; | ||
} | ||
|
||
console.log(proxy_query); | ||
|
||
var options = { | ||
host: "wtv.zefie.com", | ||
path: "/willie.php?pflash=" + getSessionData(socket_session_data[socket.id].ssid, 'wtv-client-rom-type') + proxy_query, | ||
method: 'GET' | ||
} | ||
|
||
|
||
headers = "200 OK\nContent-type: text/html"; | ||
const req = http.request(options, function (res) { | ||
data = ''; | ||
console.log(` * Upstream HTTP StatusCode: ${res.statusCode}`) | ||
|
||
res.on('data', d => { | ||
data += d; | ||
}) | ||
|
||
res.on('end', function () { | ||
sendToClient(socket, headers, data); | ||
}); | ||
}); | ||
req.end(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
200 OK | ||
Connection: Keep-Alive | ||
wtv-expire-all: htv- | ||
wtv-expire-all: wtv- | ||
Content-type: text/html | ||
|
||
<html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnm://192.168.11.188:7070/clients/zefie/wtvrom/Daybreak.ra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Allow URL access outside our trusted minisrv | ||
|
||
if (query['url']) var url = unescape(query['url']); | ||
else var url = "client:showalert?message=Please%20provide%20a%20%3Furl%3D%20with%20the%20url%20you%20would%20like%20to%20access.&buttonlabel1=Okay&buttonacction1=client:donothing" | ||
|
||
headers = `200 OK | ||
wtv-visit: `+url+` | ||
Content-type: text/html` | ||
|
||
|
||
data = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
headers = `200 OK | ||
wtv-expire-all: wtv- | ||
wtv-expire-all: http | ||
Content-type: text/html` | ||
|
||
var visit_url = null; | ||
|
||
if (request_headers['Referer']) visit_url = request_headers['Referer']; | ||
else if (query['return_to']) visit_url = query['return_to']; | ||
else visit_url = "client:goback"; | ||
|
||
data = `<html> | ||
<head> | ||
<meta | ||
http-equiv=refresh | ||
content="1; url=`+ visit_url +`" | ||
> | ||
<body bgcolor="black" text="gold" link="gold" vlink="gold" alink="gold"> | ||
Successfully expired service URL cache<br> | ||
Any previously cached pages should be reloaded from the network.<br><br> | ||
<a href="`+visit_url+`">Not loading? Click here.</a> | ||
</body> | ||
</html>`; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.