Minor issues fixed:
* Remote includes: ./Config didn't properly detect libcurl on Ubuntu 18
(and possibly other Linux distributions as well)
+* Localhost connections are considered secure, so these can be used even
+ if you have a plaintext-policy of 'deny' or 'warn'. (This was already
+ the case for servers, but now also for users and opers)
Other changes:
* Windows users may be prompted to install the Visual C++ redistributable
sendto_one(sptr, rpl_str(RPL_SNOMASK),
me.name, sptr->name, get_snostr(user->snomask));
- if (!IsSecure(sptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_WARN))
+ if (!IsSecure(sptr) && !IsLocal(sptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_WARN))
sendnotice(sptr, "%s", iConf.plaintext_policy_user_message);
/* Make creation time the real 'online since' time, excluding registration time.
static char uhost[HOSTLEN + USERLEN + 3];
static char fullname[HOSTLEN + 1];
- if (!IsSecure(cptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_DENY))
+ if (!IsSecure(cptr) && !IsLocal(cptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_DENY))
{
return exit_client(cptr, cptr, &me, iConf.plaintext_policy_user_message);
}
name = parv[1];
password = (parc > 2) ? parv[2] : "";
- if (!IsSecure(sptr) && (iConf.plaintext_policy_oper == PLAINTEXT_POLICY_DENY))
+ if (!IsSecure(sptr) && !IsLocal(sptr) && (iConf.plaintext_policy_oper == PLAINTEXT_POLICY_DENY))
{
/* Reject early */
sendnotice(sptr, "%s", iConf.plaintext_policy_oper_message);
return FLUSH_BUFFER;
}
- if (!IsSecure(sptr) && (iConf.plaintext_policy_oper == PLAINTEXT_POLICY_WARN))
+ if (!IsSecure(sptr) && !IsLocal(sptr) && (iConf.plaintext_policy_oper == PLAINTEXT_POLICY_WARN))
{
sendnotice(sptr, "%s", iConf.plaintext_policy_oper_message);
sendto_snomask_global
if (!SASL_SERVER || !find_server(SASL_SERVER, NULL))
return 0;
- if (sptr && !IsSecure(sptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_DENY))
+ if (sptr && !IsSecure(sptr) && !IsLocal(sptr) && (iConf.plaintext_policy_user == PLAINTEXT_POLICY_DENY))
return 0;
return 1;