Skip to content

Commit 62dad97

Browse files
authored
Merge pull request #1097 from keynmol/use-host-instead-of-hostname
Use Host instead of Hostname for Session creation
2 parents ce00733 + ea8f302 commit 62dad97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/shared/src/main/scala/net/BitVectorSocket.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object BitVectorSocket {
8080
Resource.eval(ev.raiseError(new SkunkException(message = msg, sql = None)))
8181

8282
def sock: Resource[F, Socket[F]] = {
83-
(Hostname.fromString(host), Port.fromInt(port)) match {
83+
(Host.fromString(host), Port.fromInt(port)) match {
8484
case (Some(validHost), Some(validPort)) => sg.client(SocketAddress(validHost, validPort), socketOptions)
8585
case (None, _) => fail(s"""Hostname: "$host" is not syntactically valid.""")
8686
case (_, None) => fail(s"Port: $port falls out of the allowed range.")

0 commit comments

Comments
 (0)