From c8125770a7e164d917ea5757854256dde50a8a15 Mon Sep 17 00:00:00 2001 From: TheDevisi Date: Sat, 11 Apr 2026 13:35:35 +0300 Subject: [PATCH] (fix): dns param is no longer ignored --- ui/ui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/ui.go b/ui/ui.go index c336be9..229c07f 100644 --- a/ui/ui.go +++ b/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) }