Repository navigation
Releases
loka v0.3.0
Phones now need the receiver's whole link to send, and remembered Lokas always get a place to send.
Breaking
- A phone or other browser can only send with the whole link or QR code the receiver shows. The part after
#r=is a token that changes each time Loka starts. Before, a device between two Lokas could pose as a browser and pass the files on. A browser shows no pairing code, so nobody would notice. Offers without the token now get 403, and the phone page says to open the link from the computer. A bare address no longer works.
Features
- Loka keeps 4 of the 16 places for waiting offers free for remembered Lokas. Before, browsers and new Lokas could fill all of them, and remembered Lokas got 503.
Changes
- PROTOCOL.md explains certificates as key pairs, like SSH keys. It also says which fingerprint to compare when the phone installs
loka-ca.crt. Compare the one in the phone's settings, not one on Loka's page. - The phone page now says, in English and Ukrainian, that Loka never shows a fingerprint there, so one that appears means someone swapped the page.
- CI and
make lintnow use golangci-lint.
Verify
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum --ignore-missing -c SHA256SUMS
Full Changelog: v0.2.1...v0.3.0
loka v0.2.1
Finished transfers show their average speed, and the help explains how to check the certificate on a phone.
Features
- A finished transfer shows its average speed, such as "complete · 100% · 312.4 Mbps". Before, it only said "complete". The page and the terminal show it, and the phone says "Sent to ... at 54.2 Mbps" after it sends files.
Fixes
- The help says where to find the installed certificate's fingerprint on Android and iPhone. It also warns not to use the browser's padlock. The padlock shows a different certificate, which Loka makes for each address, so its fingerprint never matches the one on the computer.
- The option "The phone has Loka's certificate" in Receive from a phone is now a switch. Before, it looked like an old-style checkbox.
Verify
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum --ignore-missing -c SHA256SUMS
Full Changelog: v0.2.0...v0.2.1
loka v0.2.0
Phones can send and download from the browser, and every transfer is encrypted.
Breaking
- Lokas now talk over TLS and check each transfer with a pairing code. Loka 0.1.0 can't send to 0.2.0 or receive from it, so update Loka on every computer.
- Browsers on other devices must use HTTPS. Over plain HTTP they only get a small page that moves them to HTTPS, or offers to install Loka's certificate first.
- Loka keeps its certificate, its certificate authority and the devices it remembers in
sprytnyk.dev/Lokain your settings directory.
Features
- Phones can send files and directories from the browser. Select Receive from a phone and scan the QR code. The computer asks you to accept, as with any transfer. iPhones and iPads can send files but not directories.
- Download links have a QR code for each local address, and
loka shareprints them in the terminal. - Each Loka has its own certificate authority for browsers. Install it on a phone once and Loka opens over HTTPS without a warning. It can only vouch for local network addresses, so it can't be used to pose as a web site.
- Share links and the phone address also come as
https://, for phones that have Loka's certificate. A box in the QR code window switches the codes tohttps://. - Both computers show a six-digit pairing code for each transfer. If another device sits between them, the codes differ.
- Loka remembers each device's certificate after the first transfer. If a remembered device shows a different one, Loka refuses the transfer. New devices are marked on both sides.
loka forgetforgets a device by name or ID, andloka devicesmarks the devices Loka remembers.loka receiveprints the address and QR code a phone can send from.- Tailscale addresses show up beside the local network, and phones can trust Loka there.
- An offer that nobody answers within a minute ends.
- The page has a new look, and a ? button explains what's encrypted and how to check Loka's certificate.
Fixes
- A transfer that moves no bytes for a minute, for example because a laptop went to sleep, now stops instead of hanging.
- A dropped connection now says the transfer was interrupted.
loka receiveaccepts answers of any length.- Loka closes the oldest connections that send nothing, and limits waiting offers and pairing tries, so one device can't keep others from connecting.
- Loka keeps only the latest 100 ended transfers. Before, a device that kept offering could fill the memory.
- The
curlcommand fromloka sharechecks Loka's key with--pinnedpubkey. Before, it used only-kand would send the link to any device that answered. - The phone's page no longer shows the certificate's fingerprint, since someone who swaps the certificate could swap that page too. Compare it with the one on the computer's page or in the terminal.
- Two Lokas running at once, such as
loka sendnext toloka, no longer lose each other's remembered devices. curl -Jand some older programs saved downloads under the link's token. Downloads now also carry a plain file name.
Changes
- CI measures test coverage and uploads it to Codecov.
Removed
- The "Your local address" box. Loka lists every local address by itself.
Verify
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum --ignore-missing -c SHA256SUMS
Full Changelog: v0.1.0...v0.2.0
loka v0.1.0
The first release of Loka: one program for Linux, macOS and Windows that sends files and directories between computers on your local network.
Features
- Send files and directories to another computer running Loka, from the browser page or with
loka send. Nearby devices show up by themselves; you can also enter an address and port. - Files stream as they're sent, with no temporary ZIP, and several transfers can arrive at once, each with its live speed.
- Incoming files land in a hidden directory and move into place only when the transfer finishes. Nothing is overwritten, and a failed or cancelled transfer leaves nothing behind.
- Download links for anyone without Loka, from the page or with
loka share. A single file downloads as itself and can resume; directories and several files download as a ZIP built during the download. A link stops working if a shared file is deleted or replaced. - Choose files and directories with the system's own picker (zenity or kdialog on Linux, Finder on macOS, the usual dialog on Windows), or drop them on the page.
- The page follows the system's light or dark setting and the browser's language, English or Ukrainian, with switches for both in the header.
loka receiveanswers transfers in the terminal, andloka deviceslists nearby devices.--versionprints the version, and a busy port gets a suggestion to use--port 0.
Verify
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum --ignore-missing -c SHA256SUMS