The default value for in-peers is -1 (unlimited). The reason -1 is (in effect) unlimited is because max_in_connection_count
is an unsigned integer and therefore 0-1 wraps to the maximum of an uint32_t (i.e. 2^32-1
).
If you need to limit the inbound connections, set in-peers=N
(replacing N with the number of incoming peers to allow) in your daemon config.