mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-06-04 19:39:45 +00:00
(fix): dns param is no longer ignored
This commit is contained in:
6
ui/ui.go
6
ui/ui.go
@@ -63,11 +63,11 @@ func (p *Program) buildRunString(conferenceId, encryptionKey, socksPort, dns str
|
||||
log(" DNS Server: %s", dns)
|
||||
switch p.Config.Os {
|
||||
case "windows":
|
||||
p.RunString = fmt.Sprintf("olcrtc.exe -mode cnc -id \"%s\" -key \"%s\" -socks-port %s", conferenceId, encryptionKey, socksPort)
|
||||
p.RunString = fmt.Sprintf("olcrtc.exe -mode cnc -id \"%s\" -key \"%s\" -socks-port %s -dns %s", conferenceId, encryptionKey, socksPort, dns)
|
||||
case "linux", "darwin":
|
||||
p.RunString = fmt.Sprintf("./olcrtc -mode cnc -id \"%s\" -key \"%s\" -socks-port %s", conferenceId, encryptionKey, socksPort)
|
||||
p.RunString = fmt.Sprintf("./olcrtc -mode cnc -id \"%s\" -key \"%s\" -socks-port %s -dns %s", conferenceId, encryptionKey, socksPort, dns)
|
||||
default: // in case for freeBSD and etc
|
||||
p.RunString = fmt.Sprintf("olcrtc -mode cnc -id \"%s\" -key \"%s\" -socks-port %s", conferenceId, encryptionKey, socksPort)
|
||||
p.RunString = fmt.Sprintf("olcrtc -mode cnc -id \"%s\" -key \"%s\" -socks-port %s -dns %s", conferenceId, encryptionKey, socksPort, dns)
|
||||
}
|
||||
log("Generated command: %s", p.RunString)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user