On 29/06/2016 01:08 πμ, Conrad Hoffmann wrote: > Hi, > > Attached patch allows setting a server's port in addition to the address > via the admin socket, e.g.: > > set server mybackend/server-1 addr 127.0.0.1:8080 > > I find this already useful by itself, and furthermore this can be used (one > day) to update a server's address/port via DNS SRV lookups. > > However, the implementation has a slight problem: I tried to support the > same port specifications as the server definition, i.e. absolute (:X), > relative mapping (:+X, :-X) and port forwarding (omitting the port). > On the other hand, I wanted to keep the command backwards compatible, which > means omitting the port must not change it. Thus, I ended up with the crude > workaround of requiring ':+65336' (== (ushort)0) to enable port forwarding, > which is a little ugly. > > Nevertheless, I used this succesfully to change ports on a sever and switch > between all modes, which is quite fancy. > > So I guess the questions would be: > > 1. interesting at all?
Yes, for setups with docker stuff around. Thanks, Pavlos
signature.asc
Description: OpenPGP digital signature

