Skip to content

Commit

Permalink
Update remote-debugger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
musiclover789 authored Aug 2, 2024
1 parent 6d52ae3 commit 2eb716e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions luna_utils/remote-debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ var StartChromiumWithUserDataDir = func(chromiumPath, userDataDirFullPath string
for _, arg := range customArgs {
if len(arg) > 0 {
fingerprintArgs = append(fingerprintArgs, arg)
if !strings.Contains(arg, "luna") {
chromiumCmdArgs = append(chromiumCmdArgs, arg)
}
}
}

Expand Down Expand Up @@ -84,7 +87,7 @@ var StartChromiumWithUserDataDir = func(chromiumPath, userDataDirFullPath string
fmt.Println("指纹信息路径错误:", err)
}
}
//----
//------remote-debugging-port=12345

chromiumCmdArgs = append(chromiumCmdArgs, "--remote-debugging-port="+strconv.Itoa(port))
var proxyServer *reverse_proxy.ProxyServer
Expand Down Expand Up @@ -247,7 +250,7 @@ func writeFile(filePath string, args []string, name string) error {

err := os.Remove(filePath)
if err != nil {
fmt.Println("删除文件失败:", err)
fmt.Println("删除文件失败-或不存在端口占用文件-忽略:", err)
}

// 写入文件
Expand Down

0 comments on commit 2eb716e

Please sign in to comment.