Protect Chrome debugging from other local OS accounts
This commit is contained in:
@@ -49,6 +49,19 @@ struct Server {
|
||||
runCheck()
|
||||
RunLoop.main.run()
|
||||
}
|
||||
if CommandLine.arguments.dropFirst().first == "chrome-broker" {
|
||||
Thread.detachNewThread {
|
||||
do {
|
||||
try serveChromeBroker()
|
||||
exit(0)
|
||||
} catch {
|
||||
FileHandle.standardError.write(Data("Chrome helper: \(error)\n".utf8))
|
||||
exit(1)
|
||||
}
|
||||
}
|
||||
RunLoop.main.run()
|
||||
return
|
||||
}
|
||||
Thread.detachNewThread {
|
||||
let inFlight = DispatchGroup()
|
||||
while let line = readLine() {
|
||||
|
||||
Reference in New Issue
Block a user