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
Question 1:
I use the official code: docker run -p 7317:7317 ghcr.io/go-rod/rod
Create a remote rod service
If I connect like this:
`func playwa1(hello *widget.TextGrid) string {
u := launcher.MustResolveURL("192.168.1.29:7317") //How do I use a proxy?
browser := rod.New().ControlURL(u).MustConnect()
s := browser.MustPage("https://ip138.com/").MustEval("() => document.title").String()
browser.ServeMonitor(":7779")
//time.Sleep(60 * time.Second)
return s
}`
How do I use a proxy?
Later I used test scenario 2:
Server:
`// A server to help launch browser remotely
package main
var (
addr = flag.String("address", ":7311", "the address to listen to")
quiet = flag.Bool("quiet", false, "silence the log")
allowAllPath = flag.Bool("allow-all", false, "allow all path set by the client")
)
2 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "## The code to demonstrate your question"]
20 MD003/heading-style/header-style Heading style [Expected: atx; Actual: setext]
20 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "}`"]
22 MD003/heading-style/header-style Heading style [Expected: atx; Actual: setext]
22 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "How do I use a proxy?"]
Rod Version: v0.114.7
The code to demonstrate your question
Question 1:
I use the official code: docker run -p 7317:7317 ghcr.io/go-rod/rod
Create a remote rod service
If I connect like this:
`func playwa1(hello *widget.TextGrid) string {
u := launcher.MustResolveURL("192.168.1.29:7317") //How do I use a proxy?
}`
How do I use a proxy?
Later I used test scenario 2:
Server:
`// A server to help launch browser remotely
package main
import (
"flag"
"fmt"
"log"
"net"
"net/http"
"os"
)
var (
addr = flag.String("address", ":7311", "the address to listen to")
quiet = flag.Bool("quiet", false, "silence the log")
allowAllPath = flag.Bool("allow-all", false, "allow all path set by the client")
)
func main() {
flag.Parse()
}
My client:
func playwa1(hello *widget.TextGrid) string {u := launcher.MustResolveURL("192.168.1.29:7311")
}`
Now I mainly hope that when the client uses rod, proxy can be used correctly. How should I solve it?
The text was updated successfully, but these errors were encountered: