3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

example-conf, relay, utils: replace 2.0-alpha4 references with 2.0-beta1

This commit is contained in:
James Lu 2018-06-26 14:44:07 -07:00
parent bbf1b34b12
commit 086a5f4496
3 changed files with 8 additions and 8 deletions

View File

@ -258,7 +258,7 @@ servers:
# Determines whether IPv6 should be used for this connection. Should the ip:
# above be a hostname instead of an IP, this will also affect whether A records
# (IPv4) or AAAA records (IPv6) will be used in resolving it.
# As of PyLink 2.0-alpha4, you can leave this unset for direct connections to IP addresses;
# As of PyLink 2.0-beta1, you can leave this unset for direct connections to IP addresses;
# the address type will be automatically detected.
#ipv6: yes
@ -717,7 +717,7 @@ relay:
# network should be in which pool. A network can be part of one pool, multiple
# pools, or none at all.
# This option replaces the "relay::show_ips" and network-specific "relay_no_ips"
# options, which are DEPRECATED as of 2.0-alpha4.
# options, which are DEPRECATED as of 2.0-beta1.
#ip_share_pools:
# - ["net1", "net2", "net3"]
# - ["net1", "meganet"]

View File

@ -74,12 +74,12 @@ def main(irc=None):
initialize_all(ircobj)
if 'relay_no_ips' in ircobj.serverdata:
log.warning('(%s) The "relay_no_ips" option is deprecated as of 2.0-alpha4. Consider migrating '
log.warning('(%s) The "relay_no_ips" option is deprecated as of 2.0-beta1. Consider migrating '
'to "ip_share_pools", which provides more fine-grained control over which networks '
'see which networks\' IPs.', netname)
if 'relay' in conf.conf and 'show_ips' in conf.conf['relay']:
log.warning('The "relay::show_ips" option is deprecated as of 2.0-alpha4. Consider migrating '
log.warning('The "relay::show_ips" option is deprecated as of 2.0-beta1. Consider migrating '
'to "ip_share_pools", which provides more fine-grained control over which networks '
'see which networks\' IPs.')
@ -387,7 +387,7 @@ def spawn_relay_user(irc, remoteirc, user, times_tagged=0, reuse_sid=None):
'working SID).', irc.name, user, nick, remoteirc.name)
return
# This is the legacy (< 2.0-alpha4) control for relay IP sharing
# This is the legacy (< 2.0-beta1) control for relay IP sharing
try:
showRealIP = conf.conf['relay']['show_ips'] and not \
irc.serverdata.get('relay_no_ips') and not \
@ -396,7 +396,7 @@ def spawn_relay_user(irc, remoteirc, user, times_tagged=0, reuse_sid=None):
except KeyError:
showRealIP = False
# New (>= 2.0-alpha4) IP sharing is configured via pools of networks
# New (>= 2.0-beta1) IP sharing is configured via pools of networks
showRealIP = showRealIP or _has_common_pool(irc.name, remoteirc.name, "ip_share_pools")
if showRealIP:
ip = userobj.ip
@ -2634,7 +2634,7 @@ def linkacl(irc, source, args):
elif cmd == 'allow':
if whitelist:
# In whitelist mode, ALLOW *adds* to the whitelist
if 'allowed_nets' not in entry: # Upgrading from < 2.0-alpha4
if 'allowed_nets' not in entry: # Upgrading from < 2.0-beta1
entry['allowed_nets'] = set()
db[relay]['allowed_nets'].add(remotenet)
else:

View File

@ -498,7 +498,7 @@ class ServiceBot():
# Single newlines are stripped so that word wrap can be applied in source
# code without affecting the output on IRC.
# (On the same topic, real line wrapping on IRC is done in irc.msg() as of
# 2.0-alpha4)
# 2.0-beta1)
next_line = ''
for linenum, line in enumerate(lines[1:], 1):
stripped_line = line.strip()