Apr 13, 2020 2:43:06 PM io Sen <[email protected]>: > we have a function to setting server ip address : set_addr > and we have a function to query server ip address and server port now : > get_addr > but not have a setting server port function , > Is it possible for set_addr to support setting ports? > like this: > set_addr(ip,port) > or > set_port(8443)
Well it looks like that there should be added a new function like hlua_server_set_addr http://git.haproxy.org/?p=haproxy.git;a=blob;f=src/hlua_fcn.c;h=a9c7fe507fda3e404a3ce0770224a280118966f6;hb=HEAD Maybe you can sent a patch to add the set_port function. There is a update_server_addr_port function which could be used for the lua wrapper. Regards Aleks

