Fix how the IP is selected in the MSFTP70 Settings page

This commit is contained in:
Olov Karlsson 2014-10-19 17:08:14 +02:00
parent 1dbaca9698
commit 22d6736d29

View file

@ -90,6 +90,11 @@ namespace WebsitePanel.Portal.ProviderControls
private int FindAddressByText(string address)
{
if (string.IsNullOrEmpty(address))
{
return 0;
}
foreach (IPAddressInfo addressInfo in ES.Services.Servers.GetIPAddresses(IPAddressPool.General, PanelRequest.ServerId))
{
if (addressInfo.InternalIP == address || addressInfo.ExternalIP == address)