{
if (IPMode == IPMode.IPv4)
{
+#pragma warning disable 618
return this.EndPoint.Address.Address;
+#pragma warning restore 618
}
else
{
"</u:DeletePortMapping>", "DeletePortMapping");
return true;
}
- catch (Exception ex)
+ catch (Exception)
{
// m_peer.LogWarning("UPnP delete forwarding rule failed: " + ex.Message);
return false;
string IP = xdoc.SelectSingleNode("//NewExternalIPAddress/text()", nsMgr).Value;
return IPAddress.Parse(IP);
}
- catch (Exception ex)
+ catch (Exception)
{
// m_peer.LogWarning("Failed to get external IP: " + ex.Message);
return null;
this.socket.Dispose();
}
}
-}
\ No newline at end of file
+}