Skip to content

Commit 7aeedcb

Browse files
authored
Merge pull request #25 from BunnyWay/fix-change-ip-separator
feat: change ip separator on print
2 parents 459cab2 + 0698b9b commit 7aeedcb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/orange-hairs-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bunny.net/edgescript-sdk": patch
3+
---
4+
5+
Change IP separator from ',' to '.' when printing

libs/bunny-sdk/src/net/tcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function unstable_local_addr(tcp: TcpListener): SocketAddr.SocketAddr {
2424
* Format the associated [TcpListener] to a String
2525
*/
2626
export function toString(tcp: TcpListener): string {
27-
return `${SocketAddr.ip(tcp.addr)}:${SocketAddr.port(tcp.addr)}`;
27+
return `${SocketAddr.ip(tcp.addr).join('.')}:${SocketAddr.port(tcp.addr)}`;
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)