From: Ivailo Monev Date: Fri, 6 May 2022 23:27:19 +0000 (+0300) Subject: kfirewall: do not convert the address to upper-case in the helper X-Git-Tag: 4.22.0~582 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cb9ed1e0af502aa1b439f414b9cd0944da0c03ce;p=kde%2Fkde-workspace.git kfirewall: do not convert the address to upper-case in the helper Signed-off-by: Ivailo Monev --- diff --git a/kfirewall/kcm/kfirewallhelper.cpp b/kfirewall/kcm/kfirewallhelper.cpp index 8f9c883d..e4e83ad3 100644 --- a/kfirewall/kcm/kfirewallhelper.cpp +++ b/kfirewall/kcm/kfirewallhelper.cpp @@ -52,7 +52,7 @@ static QByteArray rulesForParameters(const QVariantMap ¶meters, const bool a iptablesruledata.append(iptablestraffic); if (!addressvalue.isEmpty()) { iptablesruledata.append(" --destination "); - iptablesruledata.append(addressvalue.toUpper()); + iptablesruledata.append(addressvalue); } if (portvalue > 0) { iptablesruledata.append(" --proto tcp --dport "); diff --git a/kfirewall/kded/kded_kfirewall.cpp b/kfirewall/kded/kded_kfirewall.cpp index e6661d6d..c1502ffe 100644 --- a/kfirewall/kded/kded_kfirewall.cpp +++ b/kfirewall/kded/kded_kfirewall.cpp @@ -35,7 +35,10 @@ KFirewallModule::KFirewallModule(QObject *parent, const QList&) { enable(); - connect(&m_watcher, SIGNAL(fileChanged(QString)), this, SLOT(slotFileChanged(QString))); + connect( + &m_watcher, SIGNAL(fileChanged(QString)), + this, SLOT(slotFileChanged(QString)) + ); m_watcher.addPath(m_kfirewallconfigpath); }