Refactoring of the listening address configuration
The following discussion from !2276 (merged) should be addressed:
-
@8bitlife started a discussion: I think we should refactor it and allow to set a list of addresses that needs to be served with mandatory schema each
listen = ['tcp://0.0.0.0:2609', 'tls://0.0.0.0:2609', 'unix:///opt/var/praefect.socket']
.
It will simplify out code and we won't need to support both: 'tcp://0.0.0.0:2609' and '0.0.0.0:2609' for samelisten_addr
and in a couple of other places:PraefectServer
type
/cc @zj-gitlab