Details
Description
It looks like when the cPanel
module was updated to support dedicated IPs it wasn't fully implemented
properly for reseller accounts. They need to have an additional API
call sent to the "setresellermainip" function or "setresellerips" to
give that reseller an actual dedicated "shared main IP" for its resold
accounts. The current functionality only gives the reseller's same-name
cPanel account a dedicated IP and all of the resold accounts use the
server's main shared IP which is not the intended functionality for us,
and I'd imagine not for anyone else giving resellers dedicated IPs.https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+setresellermainip
I think this function makes the most sense for it since blesta doesn't
support multiple dedicated IPs for resellers, though I don't see this
function available in the current cpanel_api.php file.https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+setresellerips
is available in that file already so might be the best one to use.
Since Blesta stores the IP assigned as dedicated to the main account,
all you have to do is turned around and pass that IP into this
function. This should be an easy add/fix.The "delegate" param on this function should be left at default, 0.