PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
chore(release): 2.1.0
baiyuze861f50bc0f00
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 22ca09c..d30dc51 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,43 +2,54 @@## 2.1.0 — 2026-10-16-Optional official public access now tries direct connections before requesting-relay access. LAN and custom servers continue to work independently.+Sync across networks without hosting a server. Enable optional official access,+try direct connections first and use encrypted relay only when needed.+The official website is now https://pasteferry.cc/.### Changes-- **Official service**: opt in from Settings, then view daily relay usage,- remaining allowance, reset time and the existing device ID in a dedicated page.-- **Direct-first relay**: compatible online peers try direct ICE for eight- seconds before separately authorizing an encrypted WSS tunnel to standard- TURN. Idle relayed connections can retry direct access.-- **Clear controls**: save a custom server with Save and connect or Enter;- unsaved input does not change the active connection. Quota notices wait- until the app is in the foreground and appear once per quota day.-- **Privacy**: official handshakes use generic device labels. Real names are- exchanged through the encrypted peer channel. Machine quota identification- happens only when relay is requested. Protocol, fields and retention are public.-- **Dependencies**: update the Go toolchain and networking dependencies and fix- a dependency initialization race found by concurrency checks.+- **Official service**: enable one switch in Settings on each computer, with no+ server address to configure. Both peers try direct NAT traversal before+ separately authorizing an encrypted WSS relay tunnel to standard TURN.+- **Relay allowance**: view upload, download, remaining allowance and reset time+ in a dedicated sidebar page, with MB shown to two decimal places. The current+ default is 100 MB per machine quota group per day, upload plus download,+ resetting at midnight Beijing time. Direct traffic does not use this allowance.+- **Clear settings**: save custom servers with Save and connect or Enter;+ unsaved edits do not change the active connection. Shorter settings copy keeps+ full privacy and service-disable information in the action confirmations.+- **Large-file feedback**: receive files explicitly from History, follow their+ transfer state and receive desktop notifications when supported and enabled.+- **Privacy**: official access is off on fresh installs. Public handshakes use+ generic device labels, and real names travel through the encrypted peer+ channel. Machine quota identification happens only when relay is requested.+- **Website and guides**: publish official-service onboarding in five languages+ at pasteferry.cc, with direct-first routing, allowance and privacy information.+ Existing GitHub Pages addresses redirect to the new official website.+- **Dependencies**: update the Go toolchain and networking dependencies.### Fixes-- Retire closed official relay tunnels immediately so clipboard updates made- after a quota interruption enter the retry queue instead of a stale channel.+- Resume relay automatically after allowance is increased and retire closed+ tunnels immediately so interrupted clipboard updates enter the retry queue.- Release authenticated signaling sockets after abrupt or half-closed TCPdisconnects so reconnects do not accumulate server connections.+- Preserve received history when writing the clipboard fails, and report the+ failure so a completed transfer is not confused with a failed clipboard action.+- Isolate pairing checks from public STUN and use loopback relay in server tests.### Upgrade notes-- **Mac, Windows and Linux apps**: both peers need 2.1.0 for official gateway- relay. LAN, direct and custom server use remain independent of that gateway.-- **Server**: no private authorization API or SDK is added; self-hosted servers- remain compatible. Updating is recommended for dependency security fixes.+- **Mac, Windows and Linux apps**: update both peers to 2.1.0 for official relay.+ Existing identities, pairings and history are retained. Official access must+ be enabled on each computer; current limits and availability appear in the app.+- **Server**: updating is recommended for dependency and signaling fixes.+ Self-hosted servers remain independent of the private official gateway and+ require no private authorization API, callback or SDK.- The device-to-device protocol adds optional signed negotiation and encrypted- display metadata; existing LAN and self-hosted transfers remain compatible.-- Official TURN isolation must be migrated only when compatible clients are- available. Legacy clients retain signaling/direct support after migration,- but cannot bypass the official relay gateway.+ display metadata. Existing LAN and self-hosted transfers remain compatible.+ Older apps retain official signaling and direct support, but cannot use or+ bypass the new official relay gateway.## 2.0.0 — 2026-10-14diff --git a/README.md b/README.mdindex 59c08c6..983ad62 100644--- a/README.md+++ b/README.md@@ -74,7 +74,7 @@ New here? The **[quick start](https://pasteferry.cc/en/start/)** walks through iThe builds aren't notarized or code-signed yet: on Mac, allow it once under **System Settings → Privacy & Security → Open Anyway**; on Windows, click **More info → Run anyway**. Then click **Turn on background sync**, and allow PasteFerry when Windows Firewall asks, or when macOS asks to find devices on your local network.-**2. Pair.** On one computer, **Devices → Add device → Show a code**; on the other, **Enter a code**. On a different subnet, click **On a different subnet?** and also enter the address shown under the code. Confirm only if both screens show the same two fingerprint lines. From then on, copy on either one and paste on the other.+**2. Pair.** On one computer, **Devices → Add device → Show a code**; on the other, **Enter a code**. Official access needs no peer IP. For LAN subnets or Tailscale only, expand **On a different subnet?** and enter the address shown under the code. Confirm only if both screens show the same two fingerprint lines. From then on, copy on either one and paste on the other.**3. Across networks (optional).** Enable **Use official service** on both computers before pairing; existing pairings are kept. New installs keep this off until you choose it. See the [official service guide](https://pasteferry.cc/en/official/). Other connection choices remain available:diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 97b4707..88f61f0 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -74,7 +74,7 @@还没有公证和代码签名:Mac 上第一次打开时到 **系统设置 → 隐私与安全性** 点 **仍要打开**;Windows 上点 **更多信息 → 仍要运行**。然后点 **启用后台同步**。Windows 防火墙询问、macOS 询问能否查找本地网络上的设备时,都选择允许。-**2. 配对。**一台点 **设备 → 添加设备 → 生成配对码**,另一台点 **输入配对码**;不在同一网段时,再点 **不在同一网段?** 输入配对码下面显示的地址。两边显示的两行安全指纹完全一致后再确认。之后在任意一台上复制,另一台就能直接粘贴。+**2. 配对。**一台点 **设备 → 添加设备 → 生成配对码**,另一台点 **输入配对码**;官方服务不需要填 IP;仅局域网跨网段或 Tailscale 配对时,展开地址栏输入对方地址。两边显示的两行安全指纹完全一致后再确认。之后在任意一台上复制,另一台就能直接粘贴。**3. 跨网络时(可选)。**两台电脑均开启「使用官方服务」后再配对,已有配对关系可以继续使用。新安装默认关闭,由你主动开启。详见[官方服务教程](https://pasteferry.cc/official/)。其他连接方式仍然可用:diff --git a/docs/en/start/index.html b/docs/en/start/index.htmlindex e9abaa2..92cd200 100644--- a/docs/en/start/index.html+++ b/docs/en/start/index.html@@ -231,7 +231,7 @@<div><ol class="steps"><li>On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes, and this computer's address below it.</li>- <li>On the other, click Add device too, switch to Enter a code and type it in.<span class="aside">On a different subnet, or with Tailscale, click On a different subnet? and enter the other computer's address as well.</span></li>+ <li>On the other computer, choose Add device → Enter a code. Official access needs no peer IP. Expand the address field only for pairing across LAN subnets or through Tailscale.</li><li>Both screens show the same two fingerprint lines. Check them character by character, then confirm.<span class="aside">This stops anyone in the middle from posing as your device. Don't skip it.</span></li></ol><figure class="figure-card qs-verify">diff --git a/docs/ja/start/index.html b/docs/ja/start/index.htmlindex 3ac6432..cca349a 100644--- a/docs/ja/start/index.html+++ b/docs/ja/start/index.html@@ -231,7 +231,7 @@<div><ol class="steps"><li>一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードと、その下にこのコンピューターのアドレスが表示されます。</li>- <li>もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。<span class="aside">別のサブネットにある場合や Tailscale を使う場合は、「別のサブネットにありますか?」をクリックして相手のアドレスも入力します。</span></li>+ <li>もう一方で「デバイスを追加 → コードを入力」を選びます。公式サービスでは相手の IP 入力は不要です。LAN の別サブネットや Tailscale でペアリングする場合のみアドレス欄を開いて入力します。</li><li>両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。<span class="aside">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span></li></ol><figure class="figure-card qs-verify">diff --git a/docs/start/index.html b/docs/start/index.htmlindex efe04b6..453fe3e 100644--- a/docs/start/index.html+++ b/docs/start/index.html@@ -231,7 +231,7 @@<div><ol class="steps"><li>在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效,下面是这台电脑的地址。</li>- <li>在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。<span class="aside">不在同一网段、或者用 Tailscale 时,点「不在同一网段?」,再填上对方的地址。</span></li>+ <li>在另一台电脑上点「添加设备 → 输入配对码」。官方服务无需填 IP;仅局域网跨网段或 Tailscale 配对时,展开地址栏填写对方地址。</li><li>两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。<span class="aside">这一步防止有人在中间冒充你的设备,不要跳过。</span></li></ol><figure class="figure-card qs-verify">diff --git a/docs/zh-hk/start/index.html b/docs/zh-hk/start/index.htmlindex e9afa18..ab5af9c 100644--- a/docs/zh-hk/start/index.html+++ b/docs/zh-hk/start/index.html@@ -231,7 +231,7 @@<div><ol class="steps"><li>在一部電腦上開啟「裝置」,按「新增裝置」,會顯示一個 6 位配對碼,5 分鐘內有效,下面是這部電腦的地址。</li>- <li>在另一部電腦上同樣按「新增裝置」,切換到「輸入配對碼」,輸入它。<span class="aside">不在同一網段,或者使用 Tailscale 時,按「不在同一網段?」,再填上對方的地址。</span></li>+ <li>在另一部電腦按「新增裝置 → 輸入配對碼」。官方服務無需填寫 IP;只在區域網絡跨網段或 Tailscale 配對時,展開地址欄填寫對方地址。</li><li>兩邊螢幕會顯示同樣的兩行安全指紋。逐字核對一致後,再按確認。<span class="aside">這一步防止有人在中間冒充你的裝置,不要略過。</span></li></ol><figure class="figure-card qs-verify">diff --git a/docs/zh-tw/start/index.html b/docs/zh-tw/start/index.htmlindex bb9c7ed..bf01622 100644--- a/docs/zh-tw/start/index.html+++ b/docs/zh-tw/start/index.html@@ -231,7 +231,7 @@<div><ol class="steps"><li>在一台電腦上打開「裝置」,點「新增裝置」,會顯示一組 6 碼的配對碼,5 分鐘內有效,下面是這台電腦的位址。</li>- <li>在另一台電腦上同樣點「新增裝置」,切換到「輸入配對碼」,輸入它。<span class="aside">不在同一個網段、或使用 Tailscale 時,點「不在同一網段?」,再填上對方的位址。</span></li>+ <li>在另一台電腦點「新增裝置 → 輸入配對碼」。官方服務無需填寫 IP;僅區域網路跨網段或 Tailscale 配對時,展開位址欄填寫對方位址。</li><li>兩邊螢幕會顯示同樣的兩行安全指紋。逐字核對一致後,再點確認。<span class="aside">這一步能防止有人在中間冒充你的裝置,不要跳過。</span></li></ol><figure class="figure-card qs-verify">diff --git a/tools/site/content/en.py b/tools/site/content/en.pyindex dfda08a..8446496 100644--- a/tools/site/content/en.py+++ b/tools/site/content/en.py@@ -695,9 +695,7 @@ C = {"pair_steps": ["On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes, and this ""computer's address below it.",- "On the other, click Add device too, switch to Enter a code and type it in."- "<span class=\"aside\">On a different subnet, or with Tailscale, click On a different subnet? and enter the other "- "computer's address as well.</span>",+ 'On the other computer, choose Add device → Enter a code. Official access needs no peer IP. Expand the address field only for pairing across LAN subnets or through Tailscale.',"Both screens show the same two fingerprint lines. Check them character by character, then confirm.""<span class=\"aside\">This stops anyone in the middle from posing as your device. Don't skip it.</span>",],diff --git a/tools/site/content/ja.py b/tools/site/content/ja.pyindex 5eb4c6d..2ffb9b3 100644--- a/tools/site/content/ja.py+++ b/tools/site/content/ja.py@@ -640,8 +640,7 @@ C = {"pair_intro": "2 台ごとに一度ペアリングすれば、あとは何もする必要はありません。","pair_steps": ["一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードと、その下にこのコンピューターのアドレスが表示されます。",- "もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。"- "<span class=\"aside\">別のサブネットにある場合や Tailscale を使う場合は、「別のサブネットにありますか?」をクリックして相手のアドレスも入力します。</span>",+ 'もう一方で「デバイスを追加 → コードを入力」を選びます。公式サービスでは相手の IP 入力は不要です。LAN の別サブネットや Tailscale でペアリングする場合のみアドレス欄を開いて入力します。',"両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。""<span class=\"aside\">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span>",],diff --git a/tools/site/content/zh-hk.py b/tools/site/content/zh-hk.pyindex b312dc6..c1d25d8 100644--- a/tools/site/content/zh-hk.py+++ b/tools/site/content/zh-hk.py@@ -621,8 +621,7 @@ C = {"pair_intro": "每兩部電腦之間配對一次,之後就不用再理會了。","pair_steps": ["在一部電腦上開啟「裝置」,按「新增裝置」,會顯示一個 6 位配對碼,5 分鐘內有效,下面是這部電腦的地址。",- "在另一部電腦上同樣按「新增裝置」,切換到「輸入配對碼」,輸入它。"- "<span class=\"aside\">不在同一網段,或者使用 Tailscale 時,按「不在同一網段?」,再填上對方的地址。</span>",+ '在另一部電腦按「新增裝置 → 輸入配對碼」。官方服務無需填寫 IP;只在區域網絡跨網段或 Tailscale 配對時,展開地址欄填寫對方地址。',"兩邊螢幕會顯示同樣的兩行安全指紋。逐字核對一致後,再按確認。""<span class=\"aside\">這一步防止有人在中間冒充你的裝置,不要略過。</span>",],diff --git a/tools/site/content/zh-tw.py b/tools/site/content/zh-tw.pyindex 4c3724f..8d3221e 100644--- a/tools/site/content/zh-tw.py+++ b/tools/site/content/zh-tw.py@@ -620,8 +620,7 @@ C = {"pair_intro": "每兩台電腦之間配對一次,之後就不用再管了。","pair_steps": ["在一台電腦上打開「裝置」,點「新增裝置」,會顯示一組 6 碼的配對碼,5 分鐘內有效,下面是這台電腦的位址。",- "在另一台電腦上同樣點「新增裝置」,切換到「輸入配對碼」,輸入它。"- "<span class=\"aside\">不在同一個網段、或使用 Tailscale 時,點「不在同一網段?」,再填上對方的位址。</span>",+ '在另一台電腦點「新增裝置 → 輸入配對碼」。官方服務無需填寫 IP;僅區域網路跨網段或 Tailscale 配對時,展開位址欄填寫對方位址。',"兩邊螢幕會顯示同樣的兩行安全指紋。逐字核對一致後,再點確認。""<span class=\"aside\">這一步能防止有人在中間冒充你的裝置,不要跳過。</span>",],diff --git a/tools/site/content/zh.py b/tools/site/content/zh.pyindex 0ac83bd..e1feaef 100644--- a/tools/site/content/zh.py+++ b/tools/site/content/zh.py@@ -618,8 +618,7 @@ C = {"pair_intro": "每两台电脑之间配对一次,之后就不用再管了。","pair_steps": ["在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效,下面是这台电脑的地址。",- "在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。"- "<span class=\"aside\">不在同一网段、或者用 Tailscale 时,点「不在同一网段?」,再填上对方的地址。</span>",+ '在另一台电脑上点「添加设备 → 输入配对码」。官方服务无需填 IP;仅局域网跨网段或 Tailscale 配对时,展开地址栏填写对方地址。',"两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。""<span class=\"aside\">这一步防止有人在中间冒充你的设备,不要跳过。</span>",],diff --git a/ui/pubspec.yaml b/ui/pubspec.yamlindex 066ac7a..14312b9 100644--- a/ui/pubspec.yaml+++ b/ui/pubspec.yaml@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html# In Windows, build-name is used as the major, minor, and patch parts# of the product and file versions while build-number is used as the build suffix.-version: 2.1.0+22+version: 2.1.0+23environment:sdk: ^3.12.2