Skip to content

Commit e07f5b4

Browse files
committed
Fix local connection mode
1 parent f30e163 commit e07f5b4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
<p align="center">
55
A Swift package for interacting with LaMetric Time and Sky devices, providing both a client library and command-line interface
6-
7-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnatanrolnik%2FLametric-Swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/natanrolnik/Lametric-Swift)
8-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnatanrolnik%2FLametric-Swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/natanrolnik/Lametric-Swift)
6+
<hr>
97
</p>
8+
9+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnatanrolnik%2FLametric-Swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/natanrolnik/Lametric-Swift)
10+
11+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnatanrolnik%2FLametric-Swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/natanrolnik/Lametric-Swift)
1012

1113
> [!NOTE]
1214
> This package is **not affiliated with LaMetric**, but rather a personal project that can help others to interact with their LaMetric devices, from the command line on macOS or Linux, and from Swift code.

Sources/Lametric/Client/LametricClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public extension LametricClient {
8585
name: String,
8686
port: Int = 8080
8787
) -> Self {
88-
.init(scheme: .http, host: name, port: port)
88+
.init(scheme: .http, host: name + ".local", port: port)
8989
}
9090

9191
public static func url(

0 commit comments

Comments
 (0)