View Issue Details

IDProjectCategoryView StatusLast Update
0004591unrealircdpublic2018-04-15 12:34
Reporterblank Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionunable to duplicate 
Summary0004591: listen {} block and port ranges: warn on invalid syntax
Description** Important: see discussion/comments rather than this description **
according to the documentation (https://www.unrealircd.org/docs/Listen_block) port ranges should work in listen {} block but they don't

listen {
        ip *;
        port 6660-6669;
};

UnrealIRCd is now listening on the following addresses/ports:
IPv4: *:6697(SSL), *:7000, *:6660
IPv6: *:6697(SSL), *:7000, *:6660
UnrealIRCd started.

also as a separate request it would be good to be able to combine these as in other IRCds

port 6000, 6660-6669, 7000;

or similar (can't remember exact formatting of other IRCds)
3rd party modules

Activities

syzop

2016-03-07 11:09

administrator   ~0019127

Strange. I used this:
listen {
        ip *;
        port 2660-2669;
};

And it worked OK

UnrealIRCd is now listening on the following addresses/ports:
IPv4: *:2669, *:2668, *:2667, *:2666, *:2665, *:2664, *:2663, *:2662, *:2661, *:2660 ...

syzop

2016-03-07 11:10

administrator   ~0019128

Last edited: 2016-03-07 11:11

Could you paste all your listen blocks back to me? And are they literally that, or edited?

What UnrealIRCd version and OS are you using? (Hmm.. shouldn't be optional in the bug tracker :D)

blank

2016-03-07 14:55

reporter   ~0019129

listen {
        ip *;
        port 6660-6669;
};

listen {
        ip *;
        port 7000;
};

listen {
        ip *;
        port 6697;
        options { ssl; };
};

latest Debian stable, latest UnrealIRCd stable

syzop

2016-03-07 15:01

administrator   ~0019130

Hmmmm.. I'm afraid I can't reproduce.
One difference is that I'm using latest development version (git), but I don't think this part changed since 4.0.1.

syzop

2016-03-07 15:04

administrator   ~0019131

Can you verify that in your unrealircd.conf it's really 6660 followed by a hyphen followed by 6669?
Make sure it's a normal hyphen (-), not some other UTF8 glyph that looks very similar. Perhaps type it in manually again?
Also no spaces between the numbers and hyphen.

It's a long shot, but.. the only thing I can think of right now.

blank

2016-03-07 20:12

reporter   ~0019132

correct, there was a space apparently, but for some reason not when I submit the issue?

anyway, it's working now

is there a reason the space isn't permitted?

syzop

2016-03-07 20:55

administrator   ~0019133

Great.

I've updated the title.

syzop

2016-04-03 11:23

administrator   ~0019180

So you had a space in it, but how is that possible?
port 5000 - 5001;
Is not accepted by UnrealIRCd and it will error about it. Same for this:
port 5000- 5001;

Or did you really use:
port "5000- 5001";
Or something? :D

Issue History

Date Modified Username Field Change
2016-03-07 10:53 blank New Issue
2016-03-07 11:09 syzop Note Added: 0019127
2016-03-07 11:10 syzop Note Added: 0019128
2016-03-07 11:10 syzop Assigned To => syzop
2016-03-07 11:10 syzop Status new => feedback
2016-03-07 11:11 syzop Note Edited: 0019128
2016-03-07 14:55 blank Note Added: 0019129
2016-03-07 15:01 syzop Note Added: 0019130
2016-03-07 15:04 syzop Note Added: 0019131
2016-03-07 20:12 blank Note Added: 0019132
2016-03-07 20:55 syzop Note Added: 0019133
2016-03-07 20:55 syzop Status feedback => acknowledged
2016-03-07 20:55 syzop Summary listen {} block and port ranges => listen {} block and port ranges: warn on invalid syntax
2016-03-07 20:55 syzop Description Updated
2016-04-03 11:23 syzop Note Added: 0019180
2018-04-15 12:34 syzop Status acknowledged => closed
2018-04-15 12:34 syzop Resolution open => unable to duplicate