New test.
[mono.git] / mcs / class / System / System.Net / ListenerPrefix.cs
index 6d336a9fe85135a391ddf0ae25c2d4d77701688f..7a6f6a87777f2a2dde04b60c3975d96587cd7e1f 100644 (file)
@@ -26,7 +26,9 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
+
+#if NET_2_0 && SECURITY_DEP
+
 namespace System.Net {
        sealed class ListenerPrefix
        {
@@ -90,7 +92,6 @@ namespace System.Net {
                        if (default_port == -1) {
                                default_port = (uri.StartsWith ("https://")) ? 443 : -1;
                                secure = true;
-                               throw new NotSupportedException ("We don't support https yet.");
                        }
 
                        int length = uri.Length;