Skip to content

Commit

Permalink
feat: change ip separator on print
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Aug 28, 2024
1 parent 459cab2 commit 0698b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/orange-hairs-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bunny.net/edgescript-sdk": patch
---

Change IP separator from ',' to '.' when printing
2 changes: 1 addition & 1 deletion libs/bunny-sdk/src/net/tcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function unstable_local_addr(tcp: TcpListener): SocketAddr.SocketAddr {
* Format the associated [TcpListener] to a String
*/
export function toString(tcp: TcpListener): string {
return `${SocketAddr.ip(tcp.addr)}:${SocketAddr.port(tcp.addr)}`;
return `${SocketAddr.ip(tcp.addr).join('.')}:${SocketAddr.port(tcp.addr)}`;
}

/**
Expand Down

0 comments on commit 0698b9b

Please sign in to comment.