Closed g2asell2019 closed 2 months ago
I appreciate your efforts a lot.
After download docker image, I run it on github codespace
here is my webserver:
this is my docker command:
Test result: example from this
Then I inspect the docker image, I found there is no expose port command related to the port use on ud
url to map to it
Can you help me shed a light on this problem? Perhaps can you share your .Dockerfile so I can re-build the image then report to you later?
Thank you very much!!
The previous version was uploaded incorrectly https://drive.google.com/file/d/1zSs0kSZO3NE_-OJDF7UkLRMBUR5Lc9PR/view?usp=sharing This is the official version
use your ip:port
Can you try requesting this URL https://tls.peet.ws/api/all
from cytls import cytls
headers ={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36", }
proxies = {"https": "http://proxyip:proxyport"}
url ="https://tls.peet.ws/api/all" req = cytls.get(url, headers=headers, proxies=proxies)
dt = req.text print(req.status_code) print(req.headers) print(req.cookies) print(dt)
After diving a bit deeper this is what I found:
6000
and 8080
is indeed listen on request
root@fc17e0c804c3:/home# /usr/local/bin/main
cbb zf tool
:
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
[GIN-debug] POST /request --> main.startds.func1 (3 handlers) [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. [GIN-debug] Listening and serving HTTP on :8080 [GIN-debug] [ERROR] listen tcp :8080: bind: address already in use 2024/07/15 06:47:56 listen tcp :6000: bind: address already in use
there seems to be mismatch port on docker
Can you try requesting this URL https://tls.peet.ws/api/all
I got this working after update to your lastest docker image
The 6000 port is a test version, and 8081 is the official version This is the official version of the image https://drive.google.com/file/d/1zSs0kSZO3NE_-OJDF7UkLRMBUR5Lc9PR/view?usp=sharing
Hi, I appreciate your project a lot but unfortunate I can't docker image because I can't create baidu account
Can you upload docker image to dockerhub?
Thank you very much.