You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What am I doing wrong here? The README.md says all clients are allowed if you don't add any options to the program invocation. But it seems to me like the binary is silently rejecting requests unless the base of the URL says localhost.
2021/06/22 23:00:37 fetching remote URL: https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
2021/06/22 23:00:37 request: {Method:GET URL:https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png#200x200 Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Accept:[image/*] User-Agent:[willnorris/imageproxy]] Body:<nil> GetBody:<nil> ContentLength:0 TransferEncoding:[] Close:false Host:www.google.com Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr: RequestURI: TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc0000360c8} (served from cache: false)
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
What am I doing wrong here? The README.md says all clients are allowed if you don't add any options to the program invocation. But it seems to me like the binary is silently rejecting requests unless the base of the URL says
localhost
.Works 1
laptop command line:
Laptop browser:
I see the image.
Works 2
Ubuntu Server:
Ubuntu Server:
curl 'http://localhost:8080/200/https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'
Does not work 1
Ubuntu Server:
Laptop browser:
Image is not displayed.
I get
curl: (7) Failed to connect to 192.168.1.3 port 8080: Connection refused
if I use curl. I get no output when executingsudo tcpdump | grep 8080
Does not work 2
Ubuntu Server:
Ubuntu Server:
curl 'http://192.168.1.3:8080/200/https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'
Other info
nc -l 8080
, the request is received correctly (so I doubt there are connectivity issues):The text was updated successfully, but these errors were encountered: