mirror of
https://github.com/tenox7/wrp.git
synced 2025-02-16 18:30:27 +00:00
Merge pull request #39 from djames1/master
Add support for PPC64 Little Endian, fix incorrect spelling in wrp.go and README.md
This commit is contained in:
commit
dc6c8eca52
3
Makefile
3
Makefile
@ -3,6 +3,9 @@ all: linux freebsd openbsd macos windows rpi
|
||||
linux:
|
||||
GOOS=linux GOARCH=amd64 go build -a -o wrp-linux wrp.go
|
||||
|
||||
linux-ppc64le:
|
||||
GOOS=linux GOARCH=ppc64le go build -a -o wrp-linux-ppc64le wrp.go
|
||||
|
||||
freebsd:
|
||||
GOOS=freebsd GOARCH=amd64 go build -a -o wrp-freebsd wrp.go
|
||||
|
||||
|
@ -5,7 +5,7 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t
|
||||
## Current Status
|
||||
|
||||
* This is the new GoLang/ChdomeDP version.
|
||||
* It's still lacking some features of the [older version](/old) (such as real http proxy mode and image manipulation) but far surpases it in terms of stability and usability.
|
||||
* It's still lacking some features of the [older version](/old) (such as real http proxy mode and image manipulation) but far surpasses it in terms of stability and usability.
|
||||
* Currently works as browser-in-browser however work on http proxy mode is under way.
|
||||
* It's beta quality but I can actually fix and maintain the code.
|
||||
|
||||
@ -14,7 +14,7 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t
|
||||
1. [Download a WRP binary](https://github.com/tenox7/wrp/releases) and run on a server/gateway.
|
||||
2. Point your legacy browser to the IP address:port of WRP server.
|
||||
3. Type a search string or a http/https URL and click Go.
|
||||
4. Adjust your screen width/heigh/scale to fit in your old browser.
|
||||
4. Adjust your screen width/height/scale to fit in your old browser.
|
||||
5. For very very very old browsers such as Mosaic 2.x and IBM WebExplorer 1.x check the I checkbox to enable ISMAP mode. However this normally should not be needed.
|
||||
6. Scroll web page by clicking Up/Down. To go to top enter 0 and click Go.
|
||||
|
||||
|
4
wrp.go
4
wrp.go
@ -87,7 +87,7 @@ func pageServer(out http.ResponseWriter, req *http.Request) {
|
||||
if c < 2 || c > 256 {
|
||||
c = 256
|
||||
}
|
||||
log.Printf("%s Page Reqest for url=\"%s\" [%s]\n", req.RemoteAddr, u, req.URL.Path)
|
||||
log.Printf("%s Page Request for url=\"%s\" [%s]\n", req.RemoteAddr, u, req.URL.Path)
|
||||
out.Header().Set("Content-Type", "text/html")
|
||||
fmt.Fprintf(out, "<!-- Web Rendering Proxy Version %s -->\n", version)
|
||||
fmt.Fprintf(out, "<HTML>\n<HEAD><TITLE>WRP %s</TITLE></HEAD>\n<BODY BGCOLOR=\"#F0F0F0\">\n", u)
|
||||
@ -168,7 +168,7 @@ func capture(gourl string, w int64, h int64, s float64, co int, p int64, i bool,
|
||||
is := make([]Ismap, 0)
|
||||
var ion string
|
||||
|
||||
log.Printf("%s Processing Caputure Request for %s\n", c, gourl)
|
||||
log.Printf("%s Processing Capture Request for %s\n", c, gourl)
|
||||
|
||||
// Run ChromeDP Magic
|
||||
err := chromedp.Run(ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user