OSDN Git Service

kfirewall: do not convert the address to upper-case in the helper
authorIvailo Monev <xakepa10@gmail.com>
Fri, 6 May 2022 23:27:19 +0000 (02:27 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 6 May 2022 23:27:19 +0000 (02:27 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kfirewall/kcm/kfirewallhelper.cpp
kfirewall/kded/kded_kfirewall.cpp

index 8f9c883..e4e83ad 100644 (file)
@@ -52,7 +52,7 @@ static QByteArray rulesForParameters(const QVariantMap &parameters, 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 ");
index e6661d6..c1502ff 100644 (file)
@@ -35,7 +35,10 @@ KFirewallModule::KFirewallModule(QObject *parent, const QList<QVariant>&)
 {
     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);
 }