[connections/gnome-3-38] connection: Use parsed port
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gnome-3-38] connection: Use parsed port
- Date: Tue, 16 Mar 2021 09:52:53 +0000 (UTC)
commit 954ed70df5e04f83fdd8ccd7d5b8965a9fe73ae5
Author: Mike L <cl jeremy qq com>
Date: Mon Aug 17 13:25:22 2020 +0200
connection: Use parsed port
src/connection.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/connection.vala b/src/connection.vala
index 4a786fb..0fabb2c 100644
--- a/src/connection.vala
+++ b/src/connection.vala
@@ -90,7 +90,7 @@ namespace Connections {
protocol = protocol.from_string (address.scheme);
host = address.server;
- port = protocol.get_default_port ();
+ port = (address.port != 0) ? address.port : protocol.get_default_port ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]