mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
implement default_port option for to_network_address method
This commit is contained in:
parent
a2261601f6
commit
fa02234cbd
2 changed files with 12 additions and 6 deletions
|
|
@ -65,7 +65,7 @@ impl Client {
|
|||
// Begin new connection
|
||||
// * [NetworkAddress](https://docs.gtk.org/gio/class.NetworkAddress.html) required for valid
|
||||
// [SNI](https://geminiprotocol.net/docs/protocol-specification.gmi#server-name-indication)
|
||||
match request.to_network_address() {
|
||||
match request.to_network_address(crate::DEFAULT_PORT) {
|
||||
Ok(network_address) => {
|
||||
self.socket
|
||||
.connect_async(&network_address.clone(), Some(&cancellable.clone()), {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue