Lync Module fixes
This commit is contained in:
parent
bc5591a06d
commit
6936594f9c
2 changed files with 2 additions and 9 deletions
|
@ -31,7 +31,7 @@
|
|||
<div class="FormBody">
|
||||
<wsp:AllocatePackagePhoneNumbers id="allocatePhoneNumbers" runat="server"
|
||||
Pool="PhoneNumbers"
|
||||
ResourceGroup="Web"
|
||||
ResourceGroup="Lync"
|
||||
ListAddressesControl="lync_phonenumbers" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -70,22 +70,15 @@ namespace WebsitePanel.Portal.UserControls
|
|||
|
||||
private void BindIPAddresses()
|
||||
{
|
||||
bool vps = (Pool == IPAddressPool.VpsExternalNetwork || Pool == IPAddressPool.VpsManagementNetwork);
|
||||
|
||||
// bind list
|
||||
IPAddressInfo[] ips = ES.Services.Servers.GetUnallottedIPAddresses(PanelSecurity.PackageId, ResourceGroup, Pool);
|
||||
foreach (IPAddressInfo ip in ips)
|
||||
{
|
||||
string txt = ip.ExternalIP;
|
||||
|
||||
// web sites - NAT Address
|
||||
if (!vps && !String.IsNullOrEmpty(ip.InternalIP))
|
||||
if (!String.IsNullOrEmpty(ip.InternalIP))
|
||||
txt += "/" + ip.InternalIP;
|
||||
|
||||
// VPS - Gateway Address
|
||||
else if (vps && !String.IsNullOrEmpty(ip.DefaultGateway))
|
||||
txt += "/" + ip.DefaultGateway;
|
||||
|
||||
listExternalAddresses.Items.Add(new ListItem(txt, ip.AddressId.ToString()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue