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
feat(site): add a features page and slim the homepage down
baiyuze06e538fac744
diff --git a/docs/assets/features.css b/docs/assets/features.cssnew file mode 100644index 0000000..e8b2a27--- /dev/null+++ b/docs/assets/features.css@@ -0,0 +1,1326 @@+/* 功能页(features/)。在 site.css 之后加载,只给这一页用。+ *+ * 照苹果产品页的路数:一屏一件事,大标题,留白多,画面随滚动出现或推进。+ * 颜色仍是石墨底加系统蓝,不加渐变色块和发光。快捷粘贴的演示用 HTML 画,+ * 尺寸以演示框宽度为准(--u 是 1000 份之一),手机与宽屏上比例一致。+ * 没有脚本或要求减少动画时,每块都停在最能说明问题的那一帧。+ */++/* ── 开头 ── */++.f-hero {+ padding: clamp(4rem, 10vw, 7.5rem) 0 0;+ text-align: center;+}++.eyebrow {+ margin: 0 0 1.25rem;+ color: var(--dim);+ font-size: clamp(1rem, 2vw, 1.2rem);+ font-weight: 600;+}++.f-hero .display {+ font-size: clamp(2.8rem, 9vw, 6.6rem);+}++.f-hero-shot {+ width: min(94vw, 72rem);+ margin: clamp(3rem, 8vw, 5.5rem) auto 0;+ transform: scale(var(--z, 1));+ transform-origin: 50% 0;+ will-change: transform;+}++.f-hero-shot img {+ width: 100%;+}++/* ── 每一节 ── */++.f-section {+ padding-top: clamp(7rem, 17vw, 13rem);+}++.f-h2 {+ margin: 0 auto;+ max-width: 13em;+ text-align: center;+ font-family: var(--display);+ font-weight: 700;+ font-size: clamp(2.5rem, 7.4vw, 5.2rem);+ line-height: 1.07;+ letter-spacing: -0.035em;+ text-wrap: balance;+}++:lang(zh) .f-h2,+:lang(ja) .f-h2 {+ letter-spacing: -0.01em;+ line-height: 1.15;+}++:lang(ja) .f-h2 {+ font-size: clamp(2.1rem, 6.4vw, 4.4rem);+ word-break: auto-phrase;+}++.f-intro {+ margin: 1.6rem auto 0;+ max-width: 40rem;+ text-align: center;+ color: var(--dim);+ font-size: clamp(1.08rem, 2.1vw, 1.32rem);+ line-height: 1.65;+ text-wrap: pretty;+}++.f-h2 .k-mac,+.f-h2 .k-pc,+.f-intro .k-mac,+.f-intro .k-pc {+ white-space: nowrap;+}++.kicker .new {+ font-size: 0.85rem;+}++.f-note {+ margin: 2.5rem auto 0;+ max-width: 44rem;+ text-align: center;+ color: var(--dim);+ font-size: 0.92rem;+ line-height: 1.7;+}++.f-shot {+ max-width: 68rem;+ margin: clamp(3rem, 7vw, 5rem) auto 0;+}++.f-shot img {+ width: 100%;+}++.facts {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));+ gap: 2rem clamp(1.5rem, 4vw, 3rem);+ max-width: 64rem;+ margin: clamp(3rem, 7vw, 4.5rem) auto 0;+ padding: 0;+ list-style: none;+}++.facts h3 {+ font-size: 1.15rem;+}++.facts p {+ margin: 0.45rem 0 0;+ color: var(--dim);+ line-height: 1.7;+}++.facts .k-mac,+.facts .k-pc {+ font-family: var(--sans);+}++/* ── 跨设备:Mac 上 ⌘C,两条弧线把纸送到 Windows 与 Linux ── */++.trio {+ --g: clamp(1.25rem, 5vw, 4rem);+ position: relative;+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: var(--g);+ max-width: 56rem;+ margin: clamp(5rem, 12vw, 8.5rem) auto 0;+}++.dev {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 0.7rem;+ text-align: center;+}++.dev .scr {+ position: relative;+ display: grid;+ place-items: center;+ width: 100%;+ aspect-ratio: 16 / 10;+ border: 1px solid var(--rule-strong);+ border-radius: clamp(8px, 1.4vw, 14px);+ background: linear-gradient(#202024, #18181b);+}++.dev b {+ font-size: clamp(0.85rem, 1.8vw, 1rem);+ font-weight: 600;+}++.dev kbd {+ padding: 0.15em 0.6em;+ border: 1px solid var(--rule-strong);+ border-radius: 6px;+ background: var(--surface-2);+ color: var(--ink-2);+ font-size: clamp(0.72rem, 1.5vw, 0.85rem);+}++/* 纸:和首页演示里的一样,三行字的造型同 App 图标 */+.trio .doc {+ position: relative;+ width: 24%;+ aspect-ratio: 0.78;+ border-radius: 10%;+ background: #f5f5f4;+ box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);+ font-size: clamp(0.45rem, 1vw, 0.75rem);+}++.trio .doc .lines {+ color: #4a4a4f;+}++/* 收到之前,Windows 与 Linux 的屏幕上是空的(没有脚本时一直显示) */+.js .trio .dev + .dev .doc {+ opacity: 0;+}++/* 弧线由 features.js 按屏幕位置画在 .trio 上(svg.arcs) */+.trio .arcs {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ overflow: visible;+ pointer-events: none;+}++.trio .arcs path {+ fill: none;+ stroke: var(--blue-hi);+ stroke-width: 1.6;+ stroke-linecap: round;+ stroke-dasharray: var(--len) var(--len);+ stroke-dashoffset: var(--len);+ opacity: 0.9;+}++.trio.in .dev:first-child .doc {+ animation: copy-pulse 5s var(--ease) infinite;+}++.trio.in .dev:first-child kbd,+.trio.in .dev + .dev kbd {+ animation: key-hit 5s ease infinite;+}++.trio.in .dev:nth-child(2) kbd {+ animation-delay: 1.25s;+}++.trio.in .dev:nth-child(3) kbd {+ animation-delay: 1.45s;+}++.trio.in .arcs path {+ animation: arc-draw 5s var(--ease) infinite;+}++.trio.in .arcs path + path {+ animation-delay: 0.2s;+}++.trio.in .dev:nth-child(2) .doc {+ animation: doc-land 5s var(--ease) infinite;+}++.trio.in .dev:nth-child(3) .doc {+ animation: doc-land 5s var(--ease) 0.2s infinite;+}++@keyframes copy-pulse {+ 0%, 4% { transform: scale(1); }+ 9% { transform: scale(0.9); }+ 16%, 100% { transform: scale(1); }+}++@keyframes key-hit {+ 0%, 3% { background: var(--surface-2); color: var(--ink-2); border-color: var(--rule-strong); }+ 6%, 14% { background: var(--blue); color: #fff; border-color: var(--blue); }+ 22%, 100% { background: var(--surface-2); color: var(--ink-2); border-color: var(--rule-strong); }+}++@keyframes arc-draw {+ 0%, 10% { stroke-dashoffset: var(--len); opacity: 0.9; }+ 26% { stroke-dashoffset: 0; opacity: 0.9; }+ 80% { stroke-dashoffset: 0; opacity: 0.9; }+ 92%, 100% { stroke-dashoffset: 0; opacity: 0; }+}++@keyframes doc-land {+ 0%, 24% { opacity: 0; transform: translateY(-30%) scale(0.7); }+ 32% { opacity: 1; transform: translateY(4%) scale(1.04); }+ 38%, 82% { opacity: 1; transform: none; }+ 94%, 100% { opacity: 0; transform: none; }+}++/* ── 快捷粘贴:滚动推进的演示 ── */++.qp-track {+ position: relative;+ height: 360vh;+ margin-top: clamp(2.5rem, 6vw, 4rem);+}++.qp-sticky {+ position: sticky;+ top: 3.5rem;+ display: grid;+ grid-template-rows: auto auto;+ align-content: center;+ justify-items: center;+ gap: 1.75rem;+ height: calc(100vh - 3.5rem);+ height: calc(100svh - 3.5rem);+ padding: 1rem var(--gutter) 1.5rem;+ overflow: hidden;+}++@media (min-width: 62rem) {+ .qp-sticky {+ grid-template-columns: minmax(0, 1fr) 19rem;+ grid-template-rows: auto;+ align-items: center;+ gap: clamp(2.5rem, 4vw, 4rem);+ max-width: 84rem;+ margin: 0 auto;+ }+}++.qp-stage {+ --u: calc(100cqw / 1000);+ position: relative;+ width: min(100%, calc((100svh - 3.5rem - 15rem) * 1.5625), 58rem);+ aspect-ratio: 1000 / 640;+ container-type: inline-size;+ font-family: var(--sans);+ line-height: 1.4;+ text-align: left;+}++@media (min-width: 62rem) {+ .qp-stage {+ width: min(100%, calc((100svh - 3.5rem - 4rem) * 1.5625));+ justify-self: end;+ }+}++/* 手机上放大一半,两边裁掉邮件窗口的边,快捷窗口的字才看得清;邮件的正文跟着往里挪 */+@media (max-width: 40rem) {+ .qp-sticky {+ grid-template-columns: minmax(0, 1fr);+ }++ .qp-stage {+ width: 150%;+ }++ .qp-stage .mail-field {+ margin-inline: calc(190 * var(--u));+ }++ .qp-stage .mail-body {+ padding-inline: calc(190 * var(--u));+ }+}++/* 邮件窗口:铺满演示框 */+.mail {+ position: absolute;+ inset: 0;+ overflow: hidden;+ border: 1px solid var(--rule-strong);+ border-radius: calc(14 * var(--u));+ background: #1c1c1e;+ box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, 0.45);+}++.mail-bar {+ position: relative;+ display: flex;+ align-items: center;+ gap: calc(8 * var(--u));+ height: calc(52 * var(--u));+ padding: 0 calc(20 * var(--u));+ border-bottom: 1px solid #2c2c2e;+ background: #232325;+}++.mail-bar i {+ width: calc(12 * var(--u));+ height: calc(12 * var(--u));+ border-radius: 50%;+ background: #ff5f57;+}++.mail-bar i:nth-child(2) {+ background: #febc2e;+}++.mail-bar i:nth-child(3) {+ background: #28c840;+}++.mail-bar span {+ position: absolute;+ inset: 0;+ display: grid;+ place-items: center;+ color: #98989d;+ font-size: calc(15 * var(--u));+ font-weight: 600;+}++.mail-field {+ display: flex;+ gap: calc(10 * var(--u));+ align-items: center;+ height: calc(48 * var(--u));+ margin: 0 calc(28 * var(--u));+ border-bottom: 1px solid #2c2c2e;+ font-size: calc(16 * var(--u));+}++.mail-field span {+ color: #98989d;+}++.mail-field b {+ font-weight: 500;+ color: #f5f5f7;+}++.mail-body {+ padding: calc(26 * var(--u)) calc(28 * var(--u));+ color: #f5f5f7;+ font-size: calc(19 * var(--u));+ line-height: 1.75;+}++.mail-body p {+ margin: 0;+}++.mail-line {+ min-height: 1.75em;+}++.caret {+ display: inline-block;+ width: max(1px, calc(2 * var(--u)));+ height: 1.15em;+ margin-left: calc(1 * var(--u));+ vertical-align: -0.2em;+ background: var(--blue-hi);+ animation: blink 1.06s steps(1) infinite;+}++@keyframes blink {+ 50% { opacity: 0; }+}++/* 粘贴进去的那一行:先闪一下蓝底 */+.pasted {+ border-radius: calc(4 * var(--u));+}++.qp-stage.live:not(.done) .pasted {+ display: none;+}++.qp-stage.live.done .pasted {+ animation: paste-flash 1.6s var(--ease);+}++.qp-stage:not(.live) .mail-line .caret,+.qp-stage.live:not(.done) .mail-line .caret {+ margin-left: 0;+}++@keyframes paste-flash {+ 0% { background: rgba(61, 139, 234, 0.55); }+ 100% { background: transparent; }+}++/* 快捷窗口:560×460,在演示框中间偏上 */+.picker {+ position: absolute;+ left: calc(220 * var(--u));+ top: calc(66 * var(--u));+ display: flex;+ flex-direction: column;+ width: calc(560 * var(--u));+ height: calc(460 * var(--u));+ overflow: hidden;+ border: 1px solid #3a3a3c;+ border-radius: calc(14 * var(--u));+ background: #2a2a2c;+ color: #f5f5f7;+ box-shadow: 0 calc(24 * var(--u)) calc(70 * var(--u)) rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);+ transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);+}++.qp-stage.live:not(.open) .picker,+.qp-stage.live.done .picker {+ opacity: 0;+ transform: scale(0.96);+ pointer-events: none;+}++.qp-search {+ display: flex;+ align-items: center;+ gap: calc(8 * var(--u));+ height: calc(44 * var(--u));+ padding: 0 calc(12 * var(--u));+ font-size: calc(16 * var(--u));+}++.qp-search .ico {+ width: calc(16 * var(--u));+ height: calc(16 * var(--u));+ color: #636366;+}++.field {+ display: flex;+ align-items: center;+ min-width: 0;+}++.field .ph {+ color: #636366;+}++.qp-stage:not(.empty) .field .ph,+.qp-stage.empty .field .q {+ display: none;+}++.qp-stage.composing .field .q {+ text-decoration: underline;+ text-decoration-color: #98989d;+ text-underline-offset: 0.2em;+}++.field .caret {+ height: 1.2em;+ margin: 0 calc(2 * var(--u)) 0 calc(1 * var(--u));+ background: var(--blue);+}++.qp-stage.empty .field .caret {+ order: -1;+}++.qp-tabs {+ display: flex;+ height: calc(30 * var(--u));+ padding: 0 calc(8 * var(--u));+ border-bottom: 1px solid #333335;+ font-size: calc(13 * var(--u));+}++.qp-tabs span {+ display: grid;+ place-items: center;+ margin: calc(3 * var(--u)) calc(2 * var(--u)) calc(5 * var(--u));+ padding: 0 calc(10 * var(--u));+ border-radius: calc(6 * var(--u));+ color: #98989d;+}++.qp-tabs .on {+ background: #323234;+ color: #f5f5f7;+ font-weight: 600;+}++.qp-rows {+ flex: 1;+ margin: 0;+ padding: calc(4 * var(--u)) 0;+ list-style: none;+ overflow: hidden;+}++.qp-row {+ display: flex;+ align-items: center;+ height: calc(36 * var(--u));+ margin: 0 calc(4 * var(--u));+ padding: 0 calc(8 * var(--u));+ overflow: hidden;+ border-radius: calc(6 * var(--u));+ font-size: calc(14.5 * var(--u));+ transition: height 0.4s var(--ease), opacity 0.25s ease, background-color 0.2s ease;+}++.qp-row .n {+ flex: none;+ width: calc(28 * var(--u));+ color: #636366;+ font-size: calc(12.5 * var(--u));+ font-variant-numeric: tabular-nums;+}++.qp-row .n .k-mac,+.qp-row .n .k-pc {+ white-space: nowrap;+}++.pc .qp-row .n {+ width: calc(44 * var(--u));+}++.qp-row .ico {+ flex: none;+ width: calc(16 * var(--u));+ height: calc(16 * var(--u));+ margin: 0 calc(11 * var(--u)) 0 calc(3 * var(--u));+ color: #98989d;+}++.qp-row .t {+ flex: 1;+ min-width: 0;+ overflow: hidden;+ white-space: nowrap;+ text-overflow: ellipsis;+}++.qp-row .m {+ display: flex;+ align-items: center;+ gap: calc(6 * var(--u));+ margin-left: calc(12 * var(--u));+ color: #636366;+ font-size: calc(12.5 * var(--u));+ white-space: nowrap;+}++.qp-row .star {+ width: calc(14 * var(--u));+ height: calc(14 * var(--u));+ color: #3b8beb;+}++/* 没有搜索时,每行前面是序号 1–9;搜索时只留下搜到的几行,序号换成 ⌘1、⌘2 */+.qp-stage:not(.live) .qp-row:not(.hit),+.qp-stage.filtered .qp-row:not(.hit) {+ height: 0;+ opacity: 0;+}++.qp-stage:not(.live) .n-all,+.qp-stage.filtered .n-all,+.qp-stage.live:not(.filtered) .n-hit {+ display: none;+}++.qp-stage:not(.live) .qp-row.first,+.qp-stage.filtered .qp-row.first,+.qp-stage.live:not(.filtered) .qp-row.top {+ background: #3b8beb;+ color: #fff;+}++.qp-stage:not(.live) .qp-row.first :is(.n, .ico, .m, .star),+.qp-stage.filtered .qp-row.first :is(.n, .ico, .m, .star),+.qp-stage.live:not(.filtered) .qp-row.top :is(.n, .ico, .m, .star) {+ color: rgba(255, 255, 255, 0.85);+}++.qp-foot {+ display: flex;+ align-items: center;+ gap: calc(14 * var(--u));+ height: calc(34 * var(--u));+ padding: 0 calc(12 * var(--u));+ border-top: 1px solid #333335;+ color: #98989d;+ font-size: calc(12.5 * var(--u));+ white-space: nowrap;+ overflow: hidden;+}++.qp-foot > span {+ display: flex;+ align-items: center;+ gap: calc(5 * var(--u));+}++.qp-foot kbd {+ display: inline-grid;+ place-items: center;+ min-width: calc(20 * var(--u));+ height: calc(19 * var(--u));+ padding: 0 calc(5 * var(--u));+ border-radius: calc(4 * var(--u));+ background: #3a3a3c;+ color: #c7c7cc;+ font-size: calc(11.5 * var(--u));+}++.qp-foot kbd.k-pc,+.pc .qp-foot kbd.k-mac {+ display: none;+}++.pc .qp-foot kbd.k-pc {+ display: inline-grid;+}++/* 按键提示:大号键帽,按下时压一下 */+.press {+ position: absolute;+ left: 50%;+ bottom: calc(20 * var(--u));+ z-index: 2;+ display: flex;+ gap: calc(12 * var(--u));+ transform: translateX(-50%);+ opacity: 0;+ transition: opacity 0.25s ease;+ pointer-events: none;+}++.press > span {+ display: flex;+ gap: calc(12 * var(--u));+}++.press .k-pc,+.pc .press .k-mac {+ display: none;+}++.pc .press .k-pc {+ display: flex;+}++.press kbd {+ display: grid;+ place-items: center;+ min-width: calc(78 * var(--u));+ height: calc(78 * var(--u));+ padding: 0 calc(20 * var(--u));+ border: 1px solid #45454b;+ border-radius: calc(16 * var(--u));+ background: linear-gradient(#323237, #26262a);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 calc(3 * var(--u)) 0 #111, 0 calc(14 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.55);+ color: #f5f5f7;+ font-size: calc(30 * var(--u));+ font-weight: 500;+}++.press .k-pc kbd,+.press-enter kbd.k-pc {+ font-size: calc(24 * var(--u));+}++.press-enter kbd.k-pc,+.pc .press-enter kbd.k-mac {+ display: none;+}++.pc .press-enter kbd.k-pc {+ display: grid;+}++.qp-stage.keys .press-open,+.qp-stage.enter .press-enter {+ opacity: 1;+}++.qp-stage.keys .press-open kbd,+.qp-stage.enter .press-enter kbd {+ animation: press 0.5s var(--ease);+}++@keyframes press {+ 0% { transform: translateY(calc(-14 * var(--u))); opacity: 0; }+ 45% { transform: translateY(calc(3 * var(--u))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 #111; }+ 100% { transform: none; opacity: 1; }+}++/* 右边(手机上是下面)的三步,当前这一步亮 */+.qp-steps {+ width: min(100%, 36rem);+ margin: 0;+ padding: 0;+ list-style: none;+ counter-reset: none;+}++.qp-steps li {+ display: grid;+ grid-template-columns: 2rem 1fr;+ column-gap: 0.9rem;+ padding: 0.9rem 0;+ transition: opacity 0.35s ease;+}++.qp-steps li + li {+ border-top: 1px solid var(--rule);+}++.qp-steps .num {+ grid-row: span 2;+ display: grid;+ place-items: center;+ width: 2rem;+ height: 2rem;+ border: 1.5px solid var(--rule-strong);+ border-radius: 50%;+ color: var(--dim);+ font-size: 0.9rem;+ font-weight: 600;+ transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;+}++.qp-steps h3 {+ font-size: 1.12rem;+ line-height: 2rem;+}++.qp-steps p {+ margin: 0.2rem 0 0;+ color: var(--dim);+ font-size: 0.95rem;+ line-height: 1.65;+}++.qp-steps.live li:not(.on) {+ opacity: 0.35;+}++.qp-steps.live li.on .num {+ border-color: var(--blue);+ background: var(--blue);+ color: #fff;+}++/* 手机上只放得下当前这一步 */+@media (max-width: 61.99rem) {+ .qp-steps.live li:not(.on) {+ display: none;+ }++ .qp-steps.live li + li {+ border-top: 0;+ }+}++@media (prefers-reduced-motion: reduce) {+ .qp-track {+ height: auto;+ }++ .qp-sticky {+ position: relative;+ top: 0;+ height: auto;+ }+}++/* ── 细节:六格 ── */++.bento {+ display: grid;+ grid-template-columns: repeat(6, minmax(0, 1fr));+ gap: 1rem;+ max-width: 72rem;+ margin: clamp(3rem, 7vw, 5rem) auto 0;+}++.cell {+ grid-column: span 6;+ display: flex;+ flex-direction: column;+ min-width: 0;+ padding: clamp(1.5rem, 3vw, 2.1rem);+ overflow: hidden;+ border: 1px solid var(--rule);+ border-radius: 24px;+ background: var(--surface);+}++@media (min-width: 40rem) {+ .cell {+ grid-column: span 3;+ }+}++@media (min-width: 60rem) {+ .cell {+ grid-column: span 2;+ }++ .cell.wide {+ grid-column: span 3;+ }+}++.cell h3 {+ font-size: clamp(1.2rem, 2.2vw, 1.45rem);+ line-height: 1.3;+ letter-spacing: -0.01em;+}++.cell h3 .new {+ margin-left: 0.35rem;+ vertical-align: 0.15em;+}++/* 最后一格占满一行:宽屏上说明在左,演示在右 */+@media (min-width: 60rem) {+ .cell.full {+ grid-column: 1 / -1;+ display: grid;+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);+ align-items: center;+ column-gap: 3rem;+ }++ .cell.full .mini {+ padding-top: 0;+ }+}++.cell > p,+.cell.full p {+ margin: 0.55rem 0 0;+ color: var(--dim);+ font-size: 0.97rem;+ line-height: 1.65;+}++.mini {+ margin: auto 0 0;+ padding-top: 1.75rem;+ font-size: 0.92rem;+}++.mini .ico,+.mini svg {+ flex: none;+ width: 1rem;+ height: 1rem;+ color: var(--dim);+}++.mini-rows {+ margin: 0;+ padding: 0;+ list-style: none;+}++.mini-rows li {+ display: flex;+ align-items: center;+ gap: 0.7rem;+ height: 2.5rem;+ overflow: hidden;+ border-bottom: 1px solid var(--rule);+ transition: height 0.45s var(--ease), opacity 0.3s ease, border-color 0.3s ease;+}++.mini-rows li:last-child {+ border-bottom: 0;+}++.mini-rows .t {+ flex: 1;+ min-width: 0;+ overflow: hidden;+ white-space: nowrap;+ text-overflow: ellipsis;+}++.mini-rows .star {+ width: 0.9rem;+ height: 0.9rem;+ color: #3b8beb;+}++.mini-rows li.out {+ height: 0;+ opacity: 0;+ border-color: transparent;+}++/* 类型筛选:分段控件,照 App 里的样子。页签紧跟说明,列表留足 6 行的高度,筛选时页签不跳 */+[data-filter] .mini {+ margin-top: 0;+}++[data-filter] .mini-rows {+ min-height: 15rem;+}++.seg {+ display: flex;+ gap: 2px;+ margin-bottom: 0.6rem;+ padding: 3px;+ overflow: hidden;+ border-radius: 9px;+ background: #1f1f22;+ font-size: 0.8rem;+}++.seg span {+ flex: 1;+ padding: 0.3rem 0.2rem;+ border-radius: 7px;+ color: var(--dim);+ text-align: center;+ white-space: nowrap;+ transition: background-color 0.3s ease, color 0.3s ease;+}++.seg .on {+ background: #3a3a40;+ color: var(--ink);+ font-weight: 600;+}++/* 悬停提示框:截图里只露出提示框那一块 */+.hover-cell .crop {+ position: relative;+ margin-top: 1.75rem;+ aspect-ratio: 1040 / 490;+ overflow: hidden;+ border: 1px solid var(--rule);+ border-radius: 14px;+}++.hover-cell .crop img {+ position: absolute;+ left: -55.8%;+ top: -95.9%;+ width: 203%;+ max-width: none;+}++/* 搜索 */+.mini-search {+ display: flex;+ align-items: center;+ gap: 0.55rem;+ height: 2.4rem;+ margin-bottom: 0.4rem;+ padding: 0 0.8rem;+ border-radius: 9px;+ background: #1f1f22;+}++.mini-search .caret {+ height: 1.1em;+ margin-left: 1px;+ background: var(--blue);+}++.hits li {+ height: 2.3rem;+}++.hits li span {+ overflow: hidden;+ white-space: nowrap;+ text-overflow: ellipsis;+}++/* 大文件:一行记录,点「接收」后进度条走完 */+.big {+ display: flex;+ align-items: center;+ gap: 0.8rem;+}++.big > div {+ flex: 1;+ display: flex;+ flex-direction: column;+ min-width: 0;+}++.big b {+ font-weight: 500;+ overflow: hidden;+ white-space: nowrap;+ text-overflow: ellipsis;+}++.big span {+ color: var(--dim);+ font-size: 0.82rem;+}++.big .bar {+ display: block;+ height: 3px;+ margin-top: 0.45rem;+ overflow: hidden;+ border-radius: 2px;+ background: #333338;+}++.big .bar i {+ display: block;+ width: 0;+ height: 100%;+ background: var(--blue);+}++.big .receive {+ flex: none;+ padding: 0.3rem 0.85rem;+ border: 1px solid var(--rule-strong);+ border-radius: 8px;+ color: var(--ink);+ font-size: 0.85rem;+ font-weight: 500;+}++.big.in-view .bar i,+.in .big .bar i {+ animation: fetch 5s var(--ease) infinite;+}++.in .big .receive {+ animation: receive-press 5s ease infinite;+}++@keyframes fetch {+ 0%, 14% { width: 0; }+ 70%, 90% { width: 100%; }+ 100% { width: 100%; opacity: 0; }+}++@keyframes receive-press {+ 0%, 6% { background: transparent; }+ 9%, 13% { background: var(--blue); border-color: var(--blue); color: #fff; }+ 18%, 100% { background: transparent; }+}++/* 文件夹:一棵小树 */+.tree {+ list-style: none;+}++.tree li {+ display: flex;+ align-items: center;+ gap: 0.6rem;+ height: 2.1rem;+}++.tree li + li {+ padding-left: 1.6rem;+}++.tree li svg {+ width: 1.05rem;+ height: 1.05rem;+}++.tree li:first-child {+ font-weight: 500;+}++.in .tree li + li,+.tree.in li + li {+ animation: tree-in 0.6s var(--ease) both;+}++.in .tree li:nth-child(3) {+ animation-delay: 0.12s;+}++.in .tree li:nth-child(4) {+ animation-delay: 0.24s;+}++@keyframes tree-in {+ from { opacity: 0; transform: translateX(-0.6rem); }+}++/* 文件名:Mac 上的名字 → Windows 上收到的 */+.names {+ display: grid;+ gap: 0.6rem;+}++.names div {+ display: flex;+ align-items: center;+ gap: 0.75rem;+}++.names span {+ flex: none;+ width: 4.6rem;+ color: var(--dim);+ font-size: 0.82rem;+}++.names code {+ padding: 0.35rem 0.6rem;+ font-family: var(--sans);+ font-size: 0.9rem;+ white-space: nowrap;+}++.names div + div code {+ background: var(--blue-wash);+ color: var(--blue-hi);+}++/* ── 跨网络的示意图 ── */++.net {+ max-width: 50rem;+ margin: clamp(3rem, 7vw, 5rem) auto 0;+}++.net svg {+ display: block;+ width: 100%;+ height: auto;+ overflow: visible;+}++.n-svc,+.n-net,+.n-dev {+ fill: none;+ stroke: var(--rule-strong);+ stroke-width: 1.5;+}++.n-svc {+ fill: var(--surface);+}++.n-net {+ stroke-dasharray: 5 6;+}++.n-dev {+ fill: var(--surface-2);+ stroke: #4a4a52;+}++.n-title {+ fill: var(--ink);+ font: 600 19px var(--sans);+}++.n-label {+ fill: var(--dim);+ font: 500 17px var(--sans);+}++.n-note {+ fill: var(--blue-hi);+ font: 500 15px var(--sans);+}++.n-sig {+ fill: none;+ stroke: var(--faint);+ stroke-width: 1.3;+ stroke-dasharray: 3 5;+}++.n-direct {+ fill: none;+ stroke: var(--blue);+ stroke-width: 3;+ stroke-linecap: round;+ stroke-dasharray: 2 12;+}++.net.in .n-direct {+ animation: flow 1.2s linear infinite;+}++.net.in .n-sig {+ animation: flow 2.4s linear infinite reverse;+}++@keyframes flow {+ to { stroke-dashoffset: -28; }+}++/* ── 几个数字 ── */++.numbers {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: clamp(2rem, 5vw, 3rem) 1.5rem;+ max-width: 64rem;+ margin: clamp(3rem, 7vw, 5rem) auto 0;+ text-align: center;+}++@media (min-width: 52rem) {+ .numbers {+ grid-template-columns: repeat(4, minmax(0, 1fr));+ }+}++.numbers dt b {+ font-family: var(--display);+ font-size: clamp(2.6rem, 6vw, 4.2rem);+ font-weight: 700;+ line-height: 1.1;+ letter-spacing: -0.03em;+ white-space: nowrap;+}++.numbers dt span {+ color: var(--ink-2);+ font-size: 1rem;+ font-weight: 600;+}++.numbers dd {+ margin: 0.5rem 0 0;+ color: var(--dim);+ font-size: 0.95rem;+}++@media (prefers-reduced-motion: reduce) {+ .js .trio .dev + .dev .doc {+ opacity: 1;+ }++ .trio.in *,+ .in .big *,+ .in .tree li,+ .net.in path {+ animation: none !important;+ }+}diff --git a/docs/assets/features.js b/docs/assets/features.jsnew file mode 100644index 0000000..715f52f--- /dev/null+++ b/docs/assets/features.js@@ -0,0 +1,184 @@+// 功能页的动画:开头截图随滚动放大、跨设备的弧线、快捷粘贴随滚动一步步演示、类型筛选与搜索的小演示。+// 没有脚本或要求减少动画时,页面停在每块最能说明问题的那一帧(见 features.css)。+(function () {+ var still = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;+ var ticking = false;+ var onScroll = [];++ function frame() {+ ticking = false;+ onScroll.forEach(function (fn) { fn(); });+ }++ function request() {+ if (ticking) return;+ ticking = true;+ requestAnimationFrame(frame);+ }++ function clamp(x, a, b) {+ return Math.max(a, Math.min(b, x));+ }++ // 只在看得见时才跑的循环动画+ function whileVisible(el, start, stop) {+ if (!("IntersectionObserver" in window)) { start(); return; }+ new IntersectionObserver(function (entries) {+ entries[0].isIntersecting ? start() : stop();+ }, { threshold: 0.3 }).observe(el);+ }++ // ── 开头的截图:从稍小放大到原大,像窗口被推到眼前 ──+ var shot = document.querySelector("[data-zoom]");+ if (shot && !still) {+ onScroll.push(function () {+ var r = shot.getBoundingClientRect();+ var vh = window.innerHeight;+ // 截图顶边在视口底部时 0,升到视口 20% 处时 1+ var p = clamp((vh - r.top) / (vh * 0.8), 0, 1);+ shot.style.setProperty("--z", (0.86 + 0.14 * p).toFixed(4));+ });+ }++ // ── 跨设备:按三块屏幕的位置画两条弧线,Mac → Windows、Mac → Linux ──+ var trio = document.querySelector(".trio");+ if (trio) {+ var ns = "http://www.w3.org/2000/svg";+ var svg = document.createElementNS(ns, "svg");+ svg.setAttribute("class", "arcs");+ svg.setAttribute("aria-hidden", "true");+ var paths = [document.createElementNS(ns, "path"), document.createElementNS(ns, "path")];+ paths.forEach(function (p) { svg.appendChild(p); });+ trio.appendChild(svg);++ var drawArcs = function () {+ var box = trio.getBoundingClientRect();+ var scr = trio.querySelectorAll(".scr");+ var a = scr[0].getBoundingClientRect();+ svg.setAttribute("viewBox", "0 0 " + box.width + " " + box.height);+ var sx = a.left + a.width / 2 - box.left;+ var sy = a.top - box.top - 6;+ [1, 2].forEach(function (i) {+ var b = scr[i].getBoundingClientRect();+ var tx = b.left + b.width / 2 - box.left;+ var lift = (tx - sx) * (i === 1 ? 0.34 : 0.2);+ var d = "M" + sx + " " + sy + " Q" + (sx + tx) / 2 + " " + (sy - lift) + " " + tx + " " + sy;+ var p = paths[i - 1];+ p.setAttribute("d", d);+ p.style.setProperty("--len", Math.ceil(p.getTotalLength()) + "px");+ });+ };+ drawArcs();+ window.addEventListener("resize", drawArcs);+ }++ // ── 快捷粘贴:按这一节滚过的比例推进 ──+ var scene = document.querySelector("[data-scene]");+ if (scene && !still) {+ var stage = scene.querySelector(".qp-stage");+ var steps = scene.querySelector(".qp-steps");+ var items = steps.querySelectorAll("li");+ var q = stage.querySelector(".field .q");+ var typing = JSON.parse(stage.dataset.typing);+ var last = "";+ stage.classList.add("live");+ steps.classList.add("live");++ // 各个时刻(滚动进度 0–1):键帽、窗口打开、逐字输入、搜到、回车、粘贴好+ var T = { keys: 0.06, open: 0.14, type: 0.28, typed: 0.44, filter: 0.46, enter: 0.6, done: 0.68 };++ onScroll.push(function () {+ var r = scene.getBoundingClientRect();+ var span = r.height - window.innerHeight;+ var p = clamp(-r.top / span, 0, 1);++ var typed = "";+ var composing = false;+ if (p >= T.type) {+ var i = Math.min(typing.length - 1, Math.floor((p - T.type) / (T.typed - T.type) * typing.length));+ typed = typing[i][0];+ composing = typing[i][1];+ }+ var state = [+ p >= T.keys && p < T.open + 0.08 ? "keys" : "",+ p >= T.open ? "open" : "",+ typed ? "" : "empty",+ composing ? "composing" : "",+ p >= T.filter ? "filtered" : "",+ p >= T.enter && p < T.done + 0.1 ? "enter" : "",+ p >= T.done ? "done" : "",+ ].join(" ");+ if (state !== last) {+ stage.className = "qp-stage live " + state;+ last = state;+ }+ if (q.textContent !== typed) q.textContent = typed;++ var step = p < 0.24 ? 0 : p < T.enter - 0.02 ? 1 : 2;+ items.forEach(function (li, j) { li.classList.toggle("on", j === step); });+ });+ }++ // ── 类型筛选:轮流点各个页签 ──+ var filter = document.querySelector("[data-filter]");+ if (filter && !still) {+ var tabs = filter.querySelectorAll(".seg span");+ var rows = filter.querySelectorAll(".mini-rows li");+ var order = ["all", "link", "image", "file", "fav", "text"];+ var at = 0;+ var timer = null;+ var show = function (kind) {+ tabs.forEach(function (t) { t.classList.toggle("on", t.dataset.tab === kind); });+ rows.forEach(function (r) {+ var keep = kind === "all" || (kind === "fav" ? r.hasAttribute("data-fav") : r.dataset.kind === kind);+ r.classList.toggle("out", !keep);+ });+ };+ whileVisible(filter, function () {+ if (timer) return;+ timer = setInterval(function () {+ at = (at + 1) % order.length;+ show(order[at]);+ }, 1800);+ }, function () {+ clearInterval(timer);+ timer = null;+ });+ }++ // ── 搜索:逐字输入,再出结果 ──+ var search = document.querySelector("[data-search]");+ if (search && !still) {+ var field = search.querySelector(".q");+ var word = Array.from(field.dataset.q);+ var hits = search.querySelectorAll(".hits li");+ var loop = null;+ var run = function () {+ var n = 0;+ field.textContent = "";+ hits.forEach(function (h) { h.classList.add("out"); });+ var type = setInterval(function () {+ n += 1;+ field.textContent = word.slice(0, n).join("");+ if (n >= word.length) {+ clearInterval(type);+ setTimeout(function () {+ hits.forEach(function (h) { h.classList.remove("out"); });+ }, 250);+ }+ }, 260);+ };+ whileVisible(search, function () {+ if (loop) return;+ run();+ loop = setInterval(run, 4800);+ }, function () {+ clearInterval(loop);+ loop = null;+ });+ }++ window.addEventListener("scroll", request, { passive: true });+ window.addEventListener("resize", request);+ frame();+})();diff --git a/docs/assets/site.css b/docs/assets/site.cssindex d0b9ed2..1fe030c 100644--- a/docs/assets/site.css+++ b/docs/assets/site.css@@ -218,6 +218,14 @@ caption.skip {}}+/* 英文、日文的导航字多(Download、ダウンロード),手机上品牌只留图标 */+@media (max-width: 30rem) {+ :lang(en) .brand,+ :lang(ja) .brand {+ font-size: 0;+ }+}+/* 语言菜单:平时只显示当前语言,点开是一列语言,样子照 macOS 的弹出菜单 */.lang {position: relative;@@ -2574,3 +2582,279 @@ td {}.release-note:hover { background: var(--surface-2); }.official-copy { max-width: 56rem; }++/* ── 顶栏的「更多」菜单:工作原理、安全、常见问题、更新记录与 GitHub。样子和语言菜单一样 ── */++.menu {+ position: relative;+}++.menu summary {+ display: flex;+ align-items: center;+ gap: 0.3rem;+ margin: -0.3rem -0.45rem;+ padding: 0.3rem 0.45rem;+ border-radius: 6px;+ color: var(--dim);+ list-style: none;+ cursor: pointer;+ user-select: none;+ -webkit-user-select: none;+}++.menu summary::-webkit-details-marker {+ display: none;+}++.menu summary:hover,+.menu[open] summary,+.menu summary.current {+ color: var(--ink);+}++.menu summary .chev {+ width: 0.7rem;+ height: 0.7rem;+ transition: transform 0.15s var(--ease);+}++.menu[open] summary .chev {+ transform: rotate(180deg);+}++.menu ul {+ position: absolute;+ top: calc(100% + 0.75rem);+ right: -0.45rem;+ z-index: 20;+ min-width: 11rem;+ margin: 0;+ padding: 0.3rem;+ list-style: none;+ background: var(--surface-2);+ border: 1px solid var(--rule-strong);+ border-radius: 10px;+ box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);+}++.bar nav .menu ul a {+ display: block;+ padding: 0.3rem 0.75rem;+ border-radius: 6px;+ color: var(--ink-2);+ line-height: 1.6;+}++.bar nav .menu ul a:hover,+.bar nav .menu ul a:focus-visible {+ background: var(--blue);+ color: #fff;+ outline: none;+}++.bar nav .menu ul a[aria-current="page"] {+ color: var(--blue-hi);+}++.bar nav .menu ul a[aria-current="page"]:hover {+ color: #fff;+}++.menu .sep {+ height: 1px;+ margin: 0.3rem 0.5rem;+ background: var(--rule-strong);+}++/* 顶栏里收起的几项在菜单里出现 */+.menu .narrow {+ display: none;+}++@media (max-width: 46rem) {+ .menu .narrow:nth-child(2) {+ display: block;+ }+}++@media (max-width: 30rem) {+ .menu .narrow {+ display: block;+ }+}++/* ── 按键:Mac 上显示 ⌥V,Windows、Linux 上显示 Alt+V(<head> 里的脚本给 html 加 pc) ── */++.k-pc,+.pc .k-mac {+ display: none;+}++.pc .k-pc {+ display: inline;+}++kbd {+ font-family: var(--sans);+}++/* ── 首页:快捷粘贴 ── */++.kicker {+ margin: 0 0 1rem;+ text-align: center;+ color: var(--dim);+ font-size: 0.95rem;+ font-weight: 500;+}++/* 「新」标:蓝字,细边框,不用色块 */+.new {+ display: inline-block;+ padding: 0.05em 0.55em;+ border: 1px solid rgba(110, 169, 241, 0.45);+ border-radius: 999px;+ color: var(--blue-hi);+ font-size: 0.78rem;+ font-weight: 600;+ line-height: 1.6;+ letter-spacing: 0;+ vertical-align: 0.2em;+}++.spot {+ position: relative;+ margin: clamp(2.5rem, 6vw, 4rem) auto 0;+ max-width: 44rem;+}++.spot img {+ width: 100%;+}++/* 截图上方的两颗键帽:⌥ V */+.spot-keys {+ display: flex;+ justify-content: center;+ gap: 0.5rem;+ margin-bottom: -0.5rem;+}++.spot-keys .k-mac,+.spot-keys .k-pc {+ gap: 0.5rem;+}++.spot-keys > span {+ display: flex;+}++.pc .spot-keys .k-mac,+.spot-keys .k-pc {+ display: none;+}++.pc .spot-keys .k-pc {+ display: flex;+}++.spot-keys kbd {+ display: grid;+ place-items: center;+ min-width: 3.4rem;+ height: 3.4rem;+ padding: 0 0.9rem;+ border-radius: 12px;+ background: linear-gradient(#2e2e33, #232327);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #111, 0 6px 16px rgba(0, 0, 0, 0.45);+ border: 1px solid #3a3a40;+ color: var(--ink);+ font-size: 1.35rem;+ font-weight: 500;+}++.more {+ margin: 2rem 0 0;+ text-align: center;+ font-size: 1.05rem;+}++.more a + a {+ margin-left: 1.75rem;+}++/* ── 首页:功能六格 ── */++/* 六格:手机一列,平板两列,宽屏三列,总是排满 */+.tiles {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 1rem;+ margin: clamp(2.5rem, 6vw, 4rem) auto 0;+ padding: 0;+ max-width: 64rem;+ list-style: none;+}++@media (min-width: 34rem) {+ .tiles {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }+}++@media (min-width: 56rem) {+ .tiles {+ grid-template-columns: repeat(3, minmax(0, 1fr));+ }+}++.tile {+ padding: 1.6rem 1.5rem 1.5rem;+ border: 1px solid var(--rule);+ border-radius: 18px;+ background: var(--surface);+}++.tile svg {+ width: 1.75rem;+ height: 1.75rem;+ color: var(--ink-2);+}++.tile h3 {+ margin-top: 1rem;+ font-size: 1.12rem;+}++.tile h3 .new {+ margin-left: 0.3rem;+ vertical-align: 0.1em;+}++.tile p {+ margin: 0.4rem 0 0;+ color: var(--dim);+ font-size: 0.95rem;+ line-height: 1.65;+}++/* 带 data-reveal 的块滚动到时淡入(features.js 加 in);没有脚本时一直显示 */+.js [data-reveal] {+ opacity: 0;+ transform: translateY(2.5rem);+ transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);+}++.js [data-reveal].in {+ opacity: 1;+ transform: none;+}++@media (prefers-reduced-motion: reduce) {+ .js [data-reveal] {+ opacity: 1;+ transform: none;+ transition: none;+ }+}diff --git a/docs/assets/site.js b/docs/assets/site.jsindex 7fcb087..d0bfbd5 100644--- a/docs/assets/site.js+++ b/docs/assets/site.js@@ -1,4 +1,5 @@-// 首屏动画、代码块的「复制」按钮、分页(部署教程按系统分页、快速开始按部署方式分页)、语言菜单、记住选过的语言。+// 首屏动画、代码块的「复制」按钮、分页(部署教程按系统分页、快速开始按部署方式分页)、语言菜单与「更多」菜单、+// 滚动到才淡入的块、记住选过的语言。// 没有脚本时页面照样完整:动画停在复制完成的样子,分页的内容依次排开。(function () {// Load the localized tour only when requested. The href remains a normal@@ -166,18 +167,37 @@} catch (e) {}}- // 语言菜单:点菜单外面或按 Esc 收起- var langs = document.querySelector("details.lang");- if (langs) {+ // 语言菜单与「更多」菜单:点菜单外面或按 Esc 收起,打开一个时收起另一个+ var menus = document.querySelectorAll("details.lang, details.menu");+ menus.forEach(function (menu) {document.addEventListener("click", function (e) {- if (langs.open && !langs.contains(e.target)) langs.open = false;+ if (menu.open && !menu.contains(e.target)) menu.open = false;});- langs.addEventListener("keydown", function (e) {- if (e.key === "Escape" && langs.open) {- langs.open = false;- langs.querySelector("summary").focus();+ menu.addEventListener("toggle", function () {+ if (!menu.open) return;+ menus.forEach(function (other) { if (other !== menu) other.open = false; });+ });+ menu.addEventListener("keydown", function (e) {+ if (e.key === "Escape" && menu.open) {+ menu.open = false;+ menu.querySelector("summary").focus();}});+ });++ // 带 data-reveal 的块滚动到时淡入。没有 IntersectionObserver 的浏览器直接显示+ var reveals = document.querySelectorAll("[data-reveal]");+ if ("IntersectionObserver" in window) {+ var shown = new IntersectionObserver(function (entries) {+ entries.forEach(function (entry) {+ if (!entry.isIntersecting) return;+ entry.target.classList.add("in");+ shown.unobserve(entry.target);+ });+ }, { threshold: 0.18, rootMargin: "0px 0px -8% 0px" });+ reveals.forEach(function (el) { shown.observe(el); });+ } else {+ reveals.forEach(function (el) { el.classList.add("in"); });}// 选过语言,以后打开首页就直接是这种语言,不再按浏览器语言跳转diff --git a/docs/cloud/index.html b/docs/cloud/index.htmlindex d4f3a70..158b967 100644--- a/docs/cloud/index.html+++ b/docs/cloud/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server" aria-current="true">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server" aria-current="true">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/download/index.html b/docs/download/index.htmlindex 1328fb4..a4912fa 100644--- a/docs/download/index.html+++ b/docs/download/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a><a href="./" aria-current="page">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/cloud/index.html b/docs/en/cloud/index.htmlindex 67c153a..5fab60d 100644--- a/docs/en/cloud/index.html+++ b/docs/en/cloud/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server" aria-current="true">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server" aria-current="true">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/download/index.html b/docs/en/download/index.htmlindex c94d770..10b2017 100644--- a/docs/en/download/index.html+++ b/docs/en/download/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a><a href="./" aria-current="page">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/faq/index.html b/docs/en/faq/index.htmlnew file mode 100644index 0000000..b45c399--- /dev/null+++ b/docs/en/faq/index.html@@ -0,0 +1,270 @@+<!doctype html>+<html lang="en">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>FAQ — PasteFerry</title>+ <meta name="description" content="Installing, connecting, syncing and pricing. If your question isn’t here, let us know.">+ <link rel="canonical" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="FAQ — PasteFerry">+ <meta property="og:description" content="Installing, connecting, syncing and pricing. If your question isn’t here, let us know.">+ <meta property="og:url" content="https://pasteferry.cc/en/faq/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="en_US">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script type="application/ld+json">+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "Why do .uuremote_ files keep appearing while UU Remote is running?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "UU Remote writes temporary placeholder files to the system clipboard. Older PasteFerry clients recorded and forwarded them as ordinary files. Version 1.3.2 filters the confirmed placeholder naming pattern on send and receive, and removes placeholder-only history on startup. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold only controls automatic transfer; UU’s UDP P2P setting is unrelated. Upgrade both clients. Other clipboard sync tools may still duplicate ordinary content."+ }+ },+ {+ "@type": "Question",+ "name": "How is this different from Universal Clipboard?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. Now connect across networks by enabling official access, with no server to host. Direct connections first, end-to-end encryption throughout. If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough."+ }+ },+ {+ "@type": "Question",+ "name": "Can the server see what I copy?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "It cannot decrypt copied content: direct traffic stays between your devices, and relay forwards end-to-end encrypted packets. Official access retains essential device and quota statistics, described in the privacy notice. The public client and server source does not by itself prove how private production storage is operated."+ }+ },+ {+ "@type": "Question",+ "name": "Does it connect directly on office networks with several uplinks?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Yes. These networks pick an uplink per destination. PasteFerry probes several servers from one port to learn its address on every uplink and sends them all to the peer, which tries each one. A Mac behind a 4-uplink office network connects directly to a home connection in our tests. Peers behind NATs that randomize ports still fall back to the relay."+ }+ },+ {+ "@type": "Question",+ "name": "Do I need my own server?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "No. For different networks, enable official access on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, self-hosting and Tailscale remain available."+ }+ },+ {+ "@type": "Question",+ "name": "No public IP at home. Can I sync between home and the office?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "No. For different networks, enable official access on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, self-hosting and Tailscale remain available."+ }+ },+ {+ "@type": "Question",+ "name": "Both computers are on the same network. Why can't they find each other?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code. On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the same network guide."+ }+ },+ {+ "@type": "Question",+ "name": "Windows? Linux? iPhone?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you can drop into Explorer or Office. Linux desktops on x64 and ARM64 are supported too: X11, or Wayland with XWayland (GNOME, KDE and others include it by default). Files you copy paste straight into the file manager. iPhone and iPad aren't supported: iOS doesn't let apps watch the clipboard in the background, so copy-and-it's-there can't work."+ }+ },+ {+ "@type": "Question",+ "name": "Why does the system warn me the first time?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "PasteFerry isn't notarized by Apple yet, and the Windows build isn't code-signed yet; both require paid certificates. On Mac, open System Settings → Privacy & Security and click Open Anyway near the bottom. On Windows, click More info and then Run anyway in the \"Windows protected your PC\" prompt. You only do this once."+ }+ },+ {+ "@type": "Question",+ "name": "What about large files?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "By default, anything under 50 MB is pushed to the other computer as you copy it, so you can paste right away. Larger files sync as a record; pull them from the history when you need them. The limit is adjustable in Settings."+ }+ },+ {+ "@type": "Question",+ "name": "Is it free? Can my company use it?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Yes. PasteFerry is open source under the GNU AGPL-3.0, so individuals and companies can use and modify it for free. If you distribute it, or offer a modified version over a network, you publish your source under the same license."+ }+ },+ {+ "@type": "Question",+ "name": "Is official relay unlimited?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "The current default is 100 MB per machine quota group per day, upload plus download, resetting at midnight Beijing time. Reinstalling does not guarantee a fresh allowance. The usage page shows the actual limit, remaining amount and update time. Direct connections still work when relay allowance runs out. Allowances and availability may change; check the app."+ }+ }+ ]+}+ </script>+</head>+<body>+ <a class="skip" href="#main">Skip to content</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="Page">+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/download/">Download</a>+ <details class="menu">+ <summary aria-label="More pages" class="current"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="./" aria-current="page">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/faq/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>+ <li><a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../en/">PasteFerry</a></p>+ <h1 class="display">Questions</h1>+ <p class="lede">Installing, connecting, syncing and pricing. If your question isn’t here, let us know.</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="faq">+ <details>+ <summary>Why do .uuremote_ files keep appearing while UU Remote is running?</summary>+ <div class="answer"><p>UU Remote writes temporary placeholder files to the system clipboard. Older PasteFerry clients recorded and forwarded them as ordinary files. Version 1.3.2 filters the confirmed placeholder naming pattern on send and receive, and removes placeholder-only history on startup. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold only controls automatic transfer; UU’s UDP P2P setting is unrelated. Upgrade both clients. Other clipboard sync tools may still duplicate ordinary content.</p></div>+ </details>+ <details>+ <summary>How is this different from Universal Clipboard?</summary>+ <div class="answer"><p>Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. Now connect across networks by enabling official access, with no server to host. Direct connections first, end-to-end encryption throughout.</p><p>If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough.</p></div>+ </details>+ <details>+ <summary>Can the server see what I copy?</summary>+ <div class="answer"><p>It cannot decrypt copied content: direct traffic stays between your devices, and relay forwards end-to-end encrypted packets. Official access retains essential device and quota statistics, described in the privacy notice. The public client and server source does not by itself prove how private production storage is operated.</p></div>+ </details>+ <details>+ <summary>Does it connect directly on office networks with several uplinks?</summary>+ <div class="answer"><p>Yes. These networks pick an uplink per destination. PasteFerry probes several servers from one port to learn its address on every uplink and sends them all to the peer, which tries each one. A Mac behind a 4-uplink office network connects directly to a home connection in our tests. Peers behind NATs that randomize ports still fall back to the relay.</p></div>+ </details>+ <details>+ <summary>Do I need my own server?</summary>+ <div class="answer"><p>No. For different networks, enable <a href="../../en/official/">official access</a> on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, <a href="../../en/cloud/">self-hosting</a> and <a href="../../en/tailscale/">Tailscale</a> remain available.</p></div>+ </details>+ <details>+ <summary>No public IP at home. Can I sync between home and the office?</summary>+ <div class="answer"><p>No. For different networks, enable <a href="../../en/official/">official access</a> on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, <a href="../../en/cloud/">self-hosting</a> and <a href="../../en/tailscale/">Tailscale</a> remain available.</p></div>+ </details>+ <details>+ <summary>Both computers are on the same network. Why can't they find each other?</summary>+ <div class="answer"><p>Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code.</p><p>On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the <a href="../../en/lan/#faq">same network guide</a>.</p></div>+ </details>+ <details>+ <summary>Windows? Linux? iPhone?</summary>+ <div class="answer"><p>Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you can drop into Explorer or Office.</p><p>Linux desktops on x64 and ARM64 are supported too: X11, or Wayland with XWayland (GNOME, KDE and others include it by default). Files you copy paste straight into the file manager.</p><p>iPhone and iPad aren't supported: iOS doesn't let apps watch the clipboard in the background, so copy-and-it's-there can't work.</p></div>+ </details>+ <details>+ <summary>Why does the system warn me the first time?</summary>+ <div class="answer"><p>PasteFerry isn't notarized by Apple yet, and the Windows build isn't code-signed yet; both require paid certificates.</p><p>On Mac, open System Settings → Privacy & Security and click Open Anyway near the bottom. On Windows, click More info and then Run anyway in the "Windows protected your PC" prompt. You only do this once.</p></div>+ </details>+ <details>+ <summary>What about large files?</summary>+ <div class="answer"><p>By default, anything under 50 MB is pushed to the other computer as you copy it, so you can paste right away. Larger files sync as a record; pull them from the history when you need them. The limit is adjustable in Settings.</p></div>+ </details>+ <details>+ <summary>Is it free? Can my company use it?</summary>+ <div class="answer"><p>Yes. PasteFerry is open source under the GNU AGPL-3.0, so individuals and companies can use and modify it for free. If you distribute it, or offer a modified version over a network, you publish your source under the same license.</p></div>+ </details>+ <details>+ <summary>Is official relay unlimited?</summary>+ <div class="answer"><p>The current default is 100 MB per machine quota group per day, upload plus download, resetting at midnight Beijing time. Reinstalling does not guarantee a fresh allowance. The usage page shows the actual limit, remaining amount and update time. Direct connections still work when relay allowance runs out. Allowances and availability may change; check the app.</p></div>+ </details>+ </div>+ <p class="more"><a href="https://github.com/baiyuze/pasteferry/issues">Report an issue →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry is open source under the GNU AGPL-3.0.</p>+ <nav aria-label="Footer">+ <a href="https://github.com/baiyuze/pasteferry/releases">All releases</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">Design notes (Chinese)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">License</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">Report an issue</a>+ <a href="../../en/privacy/">Privacy and essential data</a>+ </nav>+ <nav aria-label="Language">+ <a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/faq/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>+ <a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/en/features/index.html b/docs/en/features/index.htmlnew file mode 100644index 0000000..6e494a3--- /dev/null+++ b/docs/en/features/index.html@@ -0,0 +1,300 @@+<!doctype html>+<html lang="en">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>Features: quick paste, favorites, history across devices — PasteFerry</title>+ <meta name="description" content="PasteFerry syncs the clipboard between Mac, Windows and Linux: copy text, images, files or folders and paste them on the other computer. Press ⌥V or Alt+V for quick paste, keep favorites, and search or filter your history.">+ <link rel="canonical" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="Features: quick paste, favorites, history across devices — PasteFerry">+ <meta property="og:description" content="PasteFerry syncs the clipboard between Mac, Windows and Linux: copy text, images, files or folders and paste them on the other computer. Press ⌥V or Alt+V for quick paste, keep favorites, and search or filter your history.">+ <meta property="og:url" content="https://pasteferry.cc/en/features/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="en_US">+ <meta property="og:locale:alternate" content="zh_CN">+ <meta property="og:locale:alternate" content="zh_TW">+ <meta property="og:locale:alternate" content="zh_HK">+ <meta property="og:locale:alternate" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <link rel="stylesheet" href="../../assets/features.css">+</head>+<body class="features">+ <a class="skip" href="#main">Skip to content</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="Page">+ <a href="./" aria-current="page">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/download/">Download</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/features/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>+ <li><a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">PasteFerry features</p>+ <h1 class="display">Copy and paste,<br>the way it should be.</h1>+ <p class="lede">A clipboard shared by your Mac, Windows and Linux computers, with everything you copied a keystroke away.</p>+ <div class="cta">+ <a class="button" href="../../en/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download PasteFerry</a>+ <a class="button quiet" href="../../en/tour/"><span aria-hidden="true">▶</span> Watch the full tour</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="../../assets/screenshots/en/history-dark.png" width="2112" height="1472" alt="PasteFerry’s history: a sidebar with History, Favorites, Devices and Settings, and a list of text, images, files and links from different computers">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">Copy here.<br>Paste there.</h2>+ <p class="f-intro">Press <span class="k-mac">⌘C</span><span class="k-pc">Ctrl+C</span> and it’s on your other computers. Press <span class="k-mac">⌘V</span><span class="k-pc">Ctrl+V</span> there. No shared account needed — mix Mac, Windows and Linux however you like.</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>MacBook</b><kbd>⌘C</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Windows</b><kbd>Ctrl+V</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Linux</b><kbd>Ctrl+V</kbd></div>+ </div>+ <ul class="facts">+ <li><h3>Text, images, files, folders</h3><p>Formatted text pastes cleanly into plain-text fields, too.</p></li>+ <li><h3>Up to 50 MB is sent as you copy</h3><p>Larger items sync as a record first; fetch them when you need them. The limit is adjustable.</p></li>+ <li><h3>Nothing lost while offline</h3><p>What you copy meanwhile lands in the other computer’s history once it’s back.</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">New in 2.4</span></p>+ <h2 class="f-h2" id="qp-title">Press <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>.<br>Your history, right where you’re typing.</h2>+ <p class="f-intro">No switching apps, no digging through chats. Press the shortcut in any app, pick an item, and it’s pasted right where your cursor was.</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ <div class="qp-stage" role="img" aria-label="Demo: while writing an email, press ⌥V; the quick paste window opens, typing “billing” finds the billing details, and Return pastes them into the email" data-typing="[["b", false], ["bi", false], ["bil", false], ["bill", false], ["billing", false]]">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>New Message</span></div>+ <div class="mail-field"><span>To:</span><b>Sarah Chen</b></div>+ <div class="mail-field"><span>Subject:</span><b>Billing details</b></div>+ <div class="mail-body"><p>Hi Sarah,</p><p>Here are our billing details:</p><p class="mail-line"><span class="pasted">Billing: Ferry Labs Ltd · VAT GB 123 4567 89</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true"><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd></div>+ <div class="picker">+ <div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">billing</span><i class="caret"></i><span class="ph">Search</span></span></div>+ <div class="qp-tabs"><span class="on">All</span><span>Text</span><span>Links</span><span>Images</span><span>Files</span><span>Favorites</span></div>+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all">1</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting moved to Thursday 3 pm, same room</span><span class="m">Just now</span></li><li class="qp-row"><span class="n n-all">2</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 minutes ago</span></li><li class="qp-row"><span class="n n-all">3</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">Image</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows PC · 5 minutes ago</span></li><li class="qp-row"><span class="n n-all">4</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">signed-contract.pdf and 2 more</span><span class="m">52 minutes ago</span></li><li class="qp-row hit first"><span class="n n-all">5</span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Billing: Ferry Labs Ltd · VAT GB 123 4567 89</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 hour ago</span></li><li class="qp-row"><span class="n n-all">6</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 hour ago</span></li><li class="qp-row hit"><span class="n n-all">7</span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Send the billing PDF to accounts, quote the order number</span><span class="m">Yesterday</span></li><li class="qp-row"><span class="n n-all">8</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">Yesterday</span></li></ol>+ <div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>Paste</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>Plain text</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>Copy only</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>Add to favorites</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>Close</span></div>+ </div>+ </div>+ <ol class="qp-steps">+ <li data-step="0"><span class="num">1</span><h3>Press <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>In any app. The window opens in the middle of the screen and hands focus back when you’re done.</p></li>+ <li data-step="1"><span class="num">2</span><h3>Type a few letters</h3><p>Search text and file names. Without a search, press 1–9 to pick one of the first nine.</p></li>+ <li data-step="2"><span class="num">3</span><h3>Press <span class="k-mac">↩</span><span class="k-pc">Enter</span>. Done.</h3><p>It’s pasted where your cursor was. <span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> pastes plain text; <span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> copies without pasting.</p></li>+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">You can change or turn off the shortcut in Settings. On a Mac, pasting for you needs the Accessibility permission; without it the item is copied and you press ⌘V. On Linux with Wayland, picked items are copied and you press Ctrl+V.</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">New in 2.4</span></p>+ <h2 class="f-h2" id="fav-title">Keep what you reuse.</h2>+ <p class="f-intro">Billing details, addresses, stock replies: star an item to keep a copy. Favorites never expire and survive clearing your history.</p>+ <figure class="f-shot" data-reveal>+ <img src="../../assets/screenshots/en/favorites-dark.png" width="2112" height="1472" loading="lazy" alt="The Favorites page: five saved items including billing details, a stock reply, a download link and a PDF, each with a blue star">+ </figure>+ <ul class="facts">+ <li><h3>Never cleaned up</h3><p>History expires on schedule; favorites stay.</p></li>+ <li><h3>A copy of its own</h3><p>Changing or deleting the original file doesn’t touch the favorite.</p></li>+ <li><h3>In quick paste too</h3><p>Switch to the Favorites tab, or press <span class="k-mac">⌘D</span><span class="k-pc">Ctrl+D</span> to favorite the selected item.</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">The details,<br>taken care of.</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>Links get their own tab <span class="new">New</span></h3>+ <p>Filter your history by type — text, links, images, files or favorites — in one click.</p>+ <div class="mini" aria-hidden="true"><div class="seg"><span data-tab="all" class="on">All</span><span data-tab="text">Text</span><span data-tab="link">Links</span><span data-tab="image">Images</span><span data-tab="file">Files</span><span data-tab="fav">Favorites</span></div><ul class="mini-rows"><li data-kind="text"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting moved to Thursday 3 pm</span></li><li data-kind="link"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span></li><li data-kind="image"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">Image · 2.4 MB</span></li><li data-kind="file"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span class="t">Q3 review - final.key</span></li><li data-kind="link" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://pasteferry.cc/download/</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li><li data-kind="text" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Billing: Ferry Labs Ltd</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li></ul></div>+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>Hover to see it all <span class="new">New</span></h3>+ <p>Rest the pointer on an item for half a second to see the full text, a larger image or every file name.</p>+ <div class="crop"><img src="../../assets/screenshots/en/hover-dark.png" width="2112" height="1472" loading="lazy" alt="The pointer rests on meeting notes and a card shows the full text: owners, release window and monitoring"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>Search what you copied</h3>+ <p>Search by text or file name and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="contract">contract</span><i class="caret"></i></div>+ <ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>signed-contract.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>Contract clause 3: switch to quarterly payments</span></li></ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>Big files, when you need them</h3>+ <p>Anything over 50 MB syncs as a record first and only transfers when you click Receive.</p>+ <div class="mini big" aria-hidden="true">+ <svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><div><b>launch-demo.mov</b><span>From Mac mini · 1.3 GB</span><i class="bar"><i></i></i></div>+ <span class="receive">Receive</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>Whole folders, too</h3>+ <p>Copy a folder and paste the same folder, structure intact, on the other computer.</p>+ <ul class="mini tree" aria-hidden="true">+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>design-assets</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>logo.svg</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>[email protected]</li>+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>Names that work everywhere</h3>+ <p>Characters that are fine on a Mac but not allowed on Windows become full-width look-alikes, so names stay readable.</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>Notes 10:30?.md</code></div>+ <div><span>Windows</span><code>Notes 10:30?.md</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">Home and office,<br>connected directly.</h2>+ <p class="f-intro">On the same network, install and pair. Across networks, turn on the official service — no server of your own. Computers connect directly whenever possible and fall back to an encrypted relay.</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="Diagram: two computers on a home and an office network find each other through the official service, then connect directly">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">Official service</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">Home</text>+ <text class="n-label" x="756" y="164" text-anchor="end">Office</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">Direct · end-to-end encrypted</text>+ </svg>+ </figure>+ <ul class="facts">+ <li><h3>Same network</h3><p>No server. Enter a pairing code and you’re done.</p></li>+ <li><h3>Across networks</h3><p>The official service, your own server, or Tailscale.</p></li>+ <li><h3>End-to-end encrypted</h3><p>Verify fingerprints when pairing; the server never sees your content.</p></li>+ </ul>+ <p class="more"><a href="../../en/start/#server">Choose how to connect →</a><a href="../../en/how/">How it works →</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">By the numbers.</h2>+ <dl class="numbers" data-reveal>+ <div><dt><b>3</b> <span>systems</span></dt><dd>macOS, Windows, Linux</dd></div>+ <div><dt><b>50 MB</b></dt><dd>sent as you copy</dd></div>+ <div><dt><b>≈330 ms</b></dt><dd>for a 20 MB file over a LAN</dd></div>+ <div><dt><b>0</b> <span>accounts</span></dt><dd>no sign-up, just pair</dd></div>+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">Try it now.</h2>+ <div class="cta">+ <a class="button" href="../../en/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download PasteFerry</a>+ </div>+ <p class="note">Version 2.3.0, free and open source. macOS 13 or later; Windows 10 and 11; Linux (x64 and ARM64).</p>+ <a class="start-link" href="../../en/start/">New here? Set it up in three steps →</a>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry is open source under the GNU AGPL-3.0.</p>+ <nav aria-label="Footer">+ <a href="https://github.com/baiyuze/pasteferry/releases">All releases</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">Design notes (Chinese)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">License</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">Report an issue</a>+ <a href="../../en/privacy/">Privacy and essential data</a>+ </nav>+ <nav aria-label="Language">+ <a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/features/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>+ <a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script src="../../assets/features.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/en/how/index.html b/docs/en/how/index.htmlnew file mode 100644index 0000000..94ec9dc--- /dev/null+++ b/docs/en/how/index.html@@ -0,0 +1,262 @@+<!doctype html>+<html lang="en">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>How PasteFerry works: direct connections, multi-uplink probing and failure handling</title>+ <meta name="description" content="What happens after you copy, how two computers find each other and connect directly, and what happens when they can’t.">+ <link rel="canonical" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="How PasteFerry works: direct connections, multi-uplink probing and failure handling">+ <meta property="og:description" content="What happens after you copy, how two computers find each other and connect directly, and what happens when they can’t.">+ <meta property="og:url" content="https://pasteferry.cc/en/how/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="en_US">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">Skip to content</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="Page">+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/download/">Download</a>+ <details class="menu">+ <summary aria-label="More pages" class="current"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="./" aria-current="page">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/how/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>+ <li><a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../en/">PasteFerry</a></p>+ <h1 class="display">How it works</h1>+ <p class="lede">What happens after you copy, how two computers find each other and connect directly, and what happens when they can’t.</p>+ </div>+ </section>++ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">What happens when you copy</h2>+ <p class="intro">Text, images, files and whole folders all take the same path.</p>+ <ol class="flow">+ <li><h3>Notice</h3><p>On Mac, the background service checks the clipboard's change count at short intervals; reading the count and types needs no permission and never shows a prompt. On Windows, the system tells it the moment you copy.</p></li>+ <li><h3>Send</h3><p>Text travels inside the message. Images and files under 50 MB are streamed right away. Larger files are announced as a record and sent when you ask for them.</p></li>+ <li><h3>Paste</h3><p>The other computer stores the content locally, then puts it on the clipboard. What you paste with ⌘V or Ctrl+V is a real local file.</p></li>+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title">+ <div class="wrap">+ <h2 id="how-title">How PasteFerry connects</h2>+ <p class="intro">On the same network, devices find each other without a server. Across networks, official access or your own server exchanges connection information. Direct NAT traversal comes first; encrypted relay is used after direct failure. The diagram shows this general signaling and relay structure.</p>+ <figure class="diagram">+ <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">+ <title id="diagram-title">How PasteFerry connects</title>+ <desc id="diagram-desc">Computer A and computer B (Mac or Windows) connect directly over WebRTC. Both connect to your server for signaling. If the direct connection fails, data is relayed through the server's TURN service.</desc>+ <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>+ <text class="d-title" x="480" y="64" text-anchor="middle">Signaling and relay service</text>+ <text class="d-sub" x="480" y="92" text-anchor="middle">Signaling, STUN, TURN relay</text>+ <path class="d-sig" d="M140 210V58H360"/>+ <path class="d-sig" d="M820 210V58H600"/>+ <path class="d-relay" d="M196 210V100H360"/>+ <path class="d-relay" d="M764 210V100H600"/>+ <text class="d-note" x="210" y="50">Signaling: connection details</text>+ <text class="d-note" x="210" y="128">Relay: only if direct fails</text>+ <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>+ <text class="d-sub" x="160" y="290" text-anchor="middle">You copy here</text>+ <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="800" y="262" text-anchor="middle">Mac or Windows</text>+ <text class="d-sub" x="800" y="290" text-anchor="middle">You paste here</text>+ <path class="d-direct" d="M280 270H680"/>+ <text class="d-label" x="480" y="256" text-anchor="middle">Direct WebRTC, DTLS encrypted</text>+ <text class="d-note" x="480" y="298" text-anchor="middle">Data moves only between your computers</text>+ <g class="d-legend" transform="translate(40 372)">+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">Data (direct)</text>+ <path class="d-relay" d="M210 0H238"/><text x="248" y="5">Data (relay, fallback)</text>+ <path class="d-sig" d="M470 0H498"/><text x="508" y="5">Signaling</text>+ </g>+ </svg>+ <ul class="points diagram-text">+ <li><strong>Direct WebRTC, DTLS encrypted</strong> Data moves only between your computers</li>+ <li><strong>Signaling and relay service</strong> Signaling, STUN, TURN relay</li>+ <li>Relay: only if direct fails</li>+ </ul>+ </figure>+ </div>+ </section>++ <section class="section" id="multi-uplink" aria-labelledby="multi-title">+ <div class="wrap">+ <h2 id="multi-title">Direct on office networks too</h2>+ <p class="intro">Office networks with two ISPs, or carriers with a pool of NAT addresses, have several uplinks and pick one per destination. A single probe only reveals one of them, so connections end up on the relay. PasteFerry probes every uplink and tells the peer about all of them.</p>+ <div class="cols">+ <div>+ <h3>What it does</h3>+ <ul class="points">+ <li><strong>One shared port.</strong> All connections send and receive on one local UDP port, so the addresses learned from different servers line up.</li>+ <li><strong>Every uplink probed.</strong> Seven IP-diverse servers are queried from that port at once, yielding one address per uplink. Addresses poisoned by DNS are dropped first.</li>+ <li><strong>All of them sent to the peer.</strong> The peer tries each address; the one matching the real uplink gets through.</li>+ <li><strong>Uplinks remembered.</strong> If a round misses an uplink that keeps ports unchanged, its address is filled in as uplink IP plus local port.</li>+ <li><strong>A rule for who sends first.</strong> Some routers lock a port when the other side's packet arrives first. One side announces its addresses first; the other sends to them before announcing its own. Retries alternate the order.</li>+ <li><strong>Retry direct while idle.</strong>If direct traversal fails and relay is available, sync can use relay. When the connection is idle, the client can retry direct access and release the relay after success.</li>+ </ul>+ </div>+ <div>+ <h3>Checked against real network topologies</h3>+ <p class="small">The NAT lab builds these topologies with Linux network namespaces and iptables and runs PasteFerry's actual connection code through each. It runs on every commit.</p>+ <div class="table-scroll">+ <table>+ <thead><tr><th scope="col">Scenario</th><th scope="col">Result</th></tr></thead>+ <tbody>+ <tr><td>Single uplink ↔ home router</td><td>Direct</td></tr>+ <tr><td>Two uplinks, previous version (control)</td><td>Relay</td></tr>+ <tr><td>Two uplinks ↔ home router</td><td>Direct</td></tr>+ <tr><td>Four uplinks ↔ home router</td><td>Direct</td></tr>+ <tr><td>Two uplinks, second not probed, no history</td><td>Relay</td></tr>+ <tr><td>Two uplinks, second not probed, with history</td><td>Direct</td></tr>+ <tr><td>Two uplinks ↔ two uplinks</td><td>Direct</td></tr>+ <tr><td>Two uplinks ↔ NAT that randomizes ports</td><td>Relay</td></tr>+ <tr><td>Blocked at first, network recovers later</td><td>Relay, then direct</td></tr>+ <tr><td>Office router locks a port for unsolicited packets</td><td>Direct</td></tr>+ <tr><td>Home router locks a port for unsolicited packets</td><td>Relay, then direct after one retry</td></tr>+ <tr><td>No server, same subnet, found over mDNS</td><td>Direct</td></tr>+ <tr><td>No server, two subnets, one side remembers the address</td><td>Direct</td></tr>+ <tr><td>No server, both block inbound, both remember</td><td>Direct</td></tr>+ <tr><td>No server, both block inbound, only one remembers</td><td>No connection (known limit)</td></tr>+ <tr><td>No server, subnets isolated from each other</td><td>No connection</td></tr>+ </tbody>+ </table>+ </div>+ <p class="small">Measured: a Mac on a 4-uplink office network and one at home could only relay before, capped at 0.6 MB/s by the server's bandwidth. Now they connect directly, about 3 seconds after reaching the server.</p>+ <p class="small">Measurements, design trade-offs and lessons learned are in the <a href="../../design/nat-traversal.html">design document</a> (in Chinese).</p>+ </div>+ </div>+ </div>+ </section>++ <section class="section" id="fallbacks" aria-labelledby="fallback-title">+ <div class="wrap">+ <h2 id="fallback-title">When things go wrong</h2>+ <p class="intro">Every network is different. Each of these cases was considered, and each has a test.</p>+ <dl class="fallbacks">+ <div><dt>Can't find the other computer on the network</dt><dd>Different subnets, guest networks and Wi‑Fi with client isolation block local discovery. Enter the address shown under the other computer's code when pairing; it's remembered afterwards, and if both computers change addresses you enter it once more in the device list.</dd></div>+ <div><dt>The system blocks the local network</dt><dd>From macOS 15, the background service needs your permission to reach devices on the local network; Windows asks about the firewall on first run. If either isn't allowed, the app says so and links straight to the fix.</dd></div>+ <div><dt>No direct path between the computers</dt><dd>Official access requests relay only after direct failure and within its current allowance. A custom server uses its own TURN relay instead. Content remains end-to-end encrypted in either case.</dd></div>+ <div><dt>Public STUN servers unreachable</dt><dd>Public STUN is unreliable in some regions, including mainland China. Your server runs its own STUN, and clients prefer it.</dd></div>+ <div><dt>Switching back to direct</dt><dd>If direct traversal fails and relay is available, sync can use relay. When the connection is idle, the client can retry direct access and release the relay after success.</dd></div>+ <div><dt>The other computer sleeps, drops off or restarts</dt><dd>A connection that dies silently is noticed, closed and reconnected. Anything you copy meanwhile is kept and added to the other computer's history once it's back, without overwriting what's on its clipboard now.</dd></div>+ <div><dt>Server connection drops</dt><dd>Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. Devices on the same network keep syncing.</dd></div>+ <div><dt>File too large</dt><dd>Above the limit only a record is synced, pulled when you need it. If the source file is gone by then, you get a clear message instead of a vague failure.</dd></div>+ <div><dt>Pasting into plain-text fields</dt><dd>Rich text copied from the web is written as both HTML and plain text, so no markup leaks into what you paste.</dd></div>+ <div><dt>A file name Windows doesn't allow</dt><dd>Colons, question marks and a few other characters that are fine on a Mac arrive as the matching full-width characters, so the name still reads the same. Two names that differ only in case never overwrite each other.</dd></div>+ <div><dt>Copying a password</dt><dd>On Windows, password managers mark what they copy as "don't record". PasteFerry skips it: not synced, not kept in the history.</dd></div>+ <div><dt>Clipboard access not granted yet</dt><dd>Content isn't read, which would block on a prompt a background process can't show. The app asks you to grant access and links straight to the setting.</dd></div>+ <div><dt>Background service crashes</dt><dd>launchd on Mac, and PasteFerry's own supervisor on Windows, restart it, throttled to once every 10 seconds.</dd></div>+ <div><dt>App updated or moved</dt><dd>On launch the app re-points its login item and restarts the service on the new version.</dd></div>+ </dl>+ </div>+ </section>++ <section class="section" id="specs" aria-labelledby="specs-title">+ <div class="wrap">+ <h2 id="specs-title">Specifications</h2>+ <div class="table-scroll">+ <table class="specs">+ <tbody>+ <tr><th scope="row">Version</th><td>2.3.0, released <time datetime="2026-10-19">October 19, 2026</time></td></tr>+ <tr><th scope="row">Mac app</th><td>macOS 13 Ventura or later; separate downloads for Apple silicon and Intel, about 25 MB each, no Rosetta; a universal version for both is about 47 MB</td></tr>+ <tr><th scope="row">Windows app</th><td>Windows 10 and Windows 11, x64; installs per user, no administrator rights; about 23 MB download</td></tr>+ <tr><th scope="row">Linux app</th><td>x64 and ARM64; .deb (Debian, Ubuntu and similar) or tar.gz (other distributions), about 22 MB; needs an X11 desktop, or a Wayland desktop with XWayland (GNOME, KDE and others include it by default); GTK 3</td></tr>+ <tr><th scope="row">Server</th><td>Deployment is needed only for self-hosting; official access needs no server of your own. Self-hosting supports Linux x86_64/ARM64, macOS and Windows 10/11 x64.</td></tr>+ <tr><th scope="row">Languages</th><td>English, Simplified Chinese, Traditional Chinese (Taiwan and Hong Kong) and Japanese; follows the system by default, switchable in Settings</td></tr>+ <tr><th scope="row">Content</th><td>Plain text, rich text, images and screenshots, files, folders; each type can be turned off</td></tr>+ <tr><th scope="row">Transport</th><td>WebRTC data channels, direct first with TURN relay fallback; on the same network, mDNS discovery and connection details over UDP 8788; every uplink probed on multi-uplink networks; files streamed as tar + zstd</td></tr>+ <tr><th scope="row">Encryption and identity</th><td>End-to-end DTLS; Ed25519 device keys; every signaling message signed</td></tr>+ <tr><th scope="row">Pairing</th><td>6-character code valid for 5 minutes, using an alphabet without look-alikes such as 0/O and 1/I; fingerprints compared by you</td></tr>+ <tr><th scope="row">Auto-sync limit</th><td>50 MB by default, adjustable from 1 MB to 1 GB</td></tr>+ <tr><th scope="row">History</th><td>3 days by default, adjustable from 1 hour to 30 days; expired items removed automatically</td></tr>+ <tr><th scope="row">Measured speed</th><td>A 20 MB file transfers in about 330 ms over a direct LAN connection, checksums matching</td></tr>+ <tr><th scope="row">Built with</th><td>Go for the background service and server (pure Go calling Win32 on Windows and speaking the X11 protocol on Linux), Flutter for the app (one codebase for all three systems), Protocol Buffers for messages</td></tr>+ <tr><th scope="row">License</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry is open source under the GNU AGPL-3.0.</p>+ <nav aria-label="Footer">+ <a href="https://github.com/baiyuze/pasteferry/releases">All releases</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">Design notes (Chinese)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">License</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">Report an issue</a>+ <a href="../../en/privacy/">Privacy and essential data</a>+ </nav>+ <nav aria-label="Language">+ <a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/how/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>+ <a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/en/index.html b/docs/en/index.htmlindex cabc7f9..1d4d87d 100644--- a/docs/en/index.html+++ b/docs/en/index.html@@ -40,6 +40,14 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script>+ (function () {+ var moved = {"how": "how/", "multi-uplink": "how/#multi-uplink", "install": "download/", "faq": "faq/", "security": "security/", "specs": "how/#specs"};+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script><script type="application/ld+json">{"@context": "https://schema.org",@@ -84,107 +92,6 @@"name": "baiyuze","url": "https://github.com/baiyuze"}- },- {- "@type": "FAQPage",- "mainEntity": [- {- "@type": "Question",- "name": "Why do .uuremote_ files keep appearing while UU Remote is running?",- "acceptedAnswer": {- "@type": "Answer",- "text": "UU Remote writes temporary placeholder files to the system clipboard. Older PasteFerry clients recorded and forwarded them as ordinary files. Version 1.3.2 filters the confirmed placeholder naming pattern on send and receive, and removes placeholder-only history on startup. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold only controls automatic transfer; UU’s UDP P2P setting is unrelated. Upgrade both clients. Other clipboard sync tools may still duplicate ordinary content."- }- },- {- "@type": "Question",- "name": "How is this different from Universal Clipboard?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. Now connect across networks by enabling official access, with no server to host. Direct connections first, end-to-end encryption throughout. If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough."- }- },- {- "@type": "Question",- "name": "Can the server see what I copy?",- "acceptedAnswer": {- "@type": "Answer",- "text": "It cannot decrypt copied content: direct traffic stays between your devices, and relay forwards end-to-end encrypted packets. Official access retains essential device and quota statistics, described in the privacy notice. The public client and server source does not by itself prove how private production storage is operated."- }- },- {- "@type": "Question",- "name": "Does it connect directly on office networks with several uplinks?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Yes. These networks pick an uplink per destination. PasteFerry probes several servers from one port to learn its address on every uplink and sends them all to the peer, which tries each one. A Mac behind a 4-uplink office network connects directly to a home connection in our tests. Peers behind NATs that randomize ports still fall back to the relay."- }- },- {- "@type": "Question",- "name": "Do I need my own server?",- "acceptedAnswer": {- "@type": "Answer",- "text": "No. For different networks, enable official access on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, self-hosting and Tailscale remain available."- }- },- {- "@type": "Question",- "name": "No public IP at home. Can I sync between home and the office?",- "acceptedAnswer": {- "@type": "Answer",- "text": "No. For different networks, enable official access on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, self-hosting and Tailscale remain available."- }- },- {- "@type": "Question",- "name": "Both computers are on the same network. Why can't they find each other?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code. On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the same network guide."- }- },- {- "@type": "Question",- "name": "Windows? Linux? iPhone?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you can drop into Explorer or Office. Linux desktops on x64 and ARM64 are supported too: X11, or Wayland with XWayland (GNOME, KDE and others include it by default). Files you copy paste straight into the file manager. iPhone and iPad aren't supported: iOS doesn't let apps watch the clipboard in the background, so copy-and-it's-there can't work."- }- },- {- "@type": "Question",- "name": "Why does the system warn me the first time?",- "acceptedAnswer": {- "@type": "Answer",- "text": "PasteFerry isn't notarized by Apple yet, and the Windows build isn't code-signed yet; both require paid certificates. On Mac, open System Settings → Privacy & Security and click Open Anyway near the bottom. On Windows, click More info and then Run anyway in the \"Windows protected your PC\" prompt. You only do this once."- }- },- {- "@type": "Question",- "name": "What about large files?",- "acceptedAnswer": {- "@type": "Answer",- "text": "By default, anything under 50 MB is pushed to the other computer as you copy it, so you can paste right away. Larger files sync as a record; pull them from the history when you need them. The limit is adjustable in Settings."- }- },- {- "@type": "Question",- "name": "Is it free? Can my company use it?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Yes. PasteFerry is open source under the GNU AGPL-3.0, so individuals and companies can use and modify it for free. If you distribute it, or offer a modified version over a network, you publish your source under the same license."- }- },- {- "@type": "Question",- "name": "Is official relay unlimited?",- "acceptedAnswer": {- "@type": "Answer",- "text": "The current default is 100 MB per machine quota group per day, upload plus download, resetting at midnight Beijing time. Reinstalling does not guarantee a fresh allowance. The usage page shows the actual limit, remaining amount and update time. Direct connections still work when relay allowance runs out. Allowances and availability may change; check the app."- }- }- ]}]}@@ -197,12 +104,23 @@<div class="wrap"><a class="brand" href="./" aria-label="PasteFerry home"><img src="../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="start/">Quick start</a>- <a class="wide" href="#how">How it works</a>- <a class="wide" href="#faq">FAQ</a>- <a class="mid" href="start/#server">Ways to connect</a>+ <a href="features/">Features</a>+ <a class="mid" href="start/">Quick start</a>+ <a class="wide" href="start/#server">Ways to connect</a><a href="download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="start/">Quick start</a></li>+ <li class="narrow"><a href="start/#server">Ways to connect</a></li>+ <li><a href="how/">How it works</a></li>+ <li><a href="security/">Security</a></li>+ <li><a href="faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>@@ -220,7 +138,7 @@<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="official/">New in 2.1: sync across networks without hosting a server →</a>+ <a class="release-note" href="features/#quick-paste">New in 2.4: quick paste with <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> →</a><h1 class="display">Copy on this computer.<br>Paste on that one.</h1><p class="lede">Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. Now connect across networks by enabling official access, with no server to host. Direct connections first, end-to-end encryption throughout.</p><div class="cta">@@ -256,6 +174,82 @@</div></section>+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">New in 2.4</span></p>+ <h2 id="qp-title">Press <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>.<br>Everything you copied, right there.</h2>+ <p class="intro">Press it in any app and your clipboard history appears in the middle of the screen. Press a number or Return and the item is pasted where you were typing. Keep the things you reuse in Favorites.</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="../assets/screenshots/en/card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="The quick paste window: a search field and six tabs (All, Text, Links, Images, Files, Favorites), numbered history items, and key hints at the bottom">+ </figure>+ <p class="more"><a href="features/#quick-paste">More about quick paste →</a></p>+ </div>+ </section>++ <section class="section" id="features" aria-labelledby="grid-title">+ <div class="wrap">+ <h2 id="grid-title">More than a shared clipboard.</h2>+ <ul class="tiles">+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/></svg>+ <h3>Quick paste <span class="new">New</span></h3>+ <p>Press <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> for your history; pick an item and it’s pasted.</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/></svg>+ <h3>Favorites <span class="new">New</span></h3>+ <p>Keep a copy of what you reuse. It never expires.</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>+ <h3>Files and folders</h3>+ <p>Up to 50 MB is sent as you copy; larger files on demand.</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>+ <h3>History</h3>+ <p>Everything copied on every device, searchable and filterable.</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>+ <h3>Across networks</h3>+ <p>Turn on the official service and sync between home and work.</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/></svg>+ <h3>End-to-end encrypted</h3>+ <p>Direct first. The server can’t see what you copy.</p>+ </li>+ </ul>+ <p class="more"><a href="features/">See all features →</a></p>+ </div>+ </section>++ <section class="section" id="why" aria-labelledby="why-title">+ <div class="wrap">+ <h2 id="why-title">Why not what's already there</h2>+ <p class="intro">Universal Clipboard needs the same Apple ID and both Macs close together. AirDrop asks you to accept every time. Messaging yourself means manual downloads and files left on someone else's server. With one Mac and one Windows PC, none of the built-in options work at all.</p>+ <div class="block table-scroll">+ <table class="compare">+ <caption class="skip">PasteFerry compared with other options</caption>+ <thead><tr><td></td><th scope="col" class="ours">PasteFerry</th><th scope="col">Universal Clipboard</th><th scope="col">AirDrop</th><th scope="col">Chat apps</th></tr></thead>+ <tbody>+ <tr><th scope="row">Different Apple IDs</th><td class="yes ours">Yes</td><td class="no">No</td><td class="partial">Needs accepting</td><td class="yes">Yes</td></tr>+ <tr><th scope="row">Between Mac and Windows</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="yes">Yes</td></tr>+ <tr><th scope="row">Different networks (home and office)</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="yes">Yes</td></tr>+ <tr><th scope="row">Paste right away, nothing to accept</th><td class="yes ours">Yes</td><td class="yes">Yes</td><td class="no">No</td><td class="no">No</td></tr>+ <tr><th scope="row">Files and whole folders</th><td class="yes ours">Yes</td><td class="partial">Unreliable</td><td class="yes">Yes</td><td class="partial">Zip first</td></tr>+ <tr><th scope="row">Find something you copied earlier</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="partial">Scroll back</td></tr>+ <tr><th scope="row">Only your devices can decrypt content</th><td class="yes ours">Yes</td><td class="yes">Yes</td><td class="yes">Yes</td><td class="some">Varies by app</td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+<section class="section" id="deploy" aria-labelledby="deploy-title"><div class="wrap"><h2 id="deploy-title">How your computers connect</h2>@@ -294,313 +288,6 @@</div></section>- <section class="section" aria-labelledby="history-title">- <div class="wrap">- <h2 id="history-title">Everything you copied, on every computer</h2>- <p class="intro">History keeps the last 3 days, ready to go back on the clipboard; click an image to preview it. Files under 50 MB have already arrived by the time you switch computers, and larger ones are a click away. To find something you copied earlier, search by its text or file name.</p>- <figure class="shot">- <img src="../assets/screenshots/en/history-dark.png" width="2112" height="1472" alt="PasteFerry history: files, images and text from a MacBook Air and a Mac mini; a large file shows a button to pull it to this device">- </figure>- </div>- </section>-- <section class="section" aria-labelledby="flow-title">- <div class="wrap">- <h2 id="flow-title">What happens when you copy</h2>- <p class="intro">Text, images, files and whole folders all take the same path.</p>- <ol class="flow">- <li><h3>Notice</h3><p>On Mac, the background service checks the clipboard's change count at short intervals; reading the count and types needs no permission and never shows a prompt. On Windows, the system tells it the moment you copy.</p></li>- <li><h3>Send</h3><p>Text travels inside the message. Images and files under 50 MB are streamed right away. Larger files are announced as a record and sent when you ask for them.</p></li>- <li><h3>Paste</h3><p>The other computer stores the content locally, then puts it on the clipboard. What you paste with ⌘V or Ctrl+V is a real local file.</p></li>- </ol>- </div>- </section>-- <section class="section" aria-labelledby="why-title">- <div class="wrap">- <h2 id="why-title">Why not what's already there</h2>- <p class="intro">Universal Clipboard needs the same Apple ID and both Macs close together. AirDrop asks you to accept every time. Messaging yourself means manual downloads and files left on someone else's server. With one Mac and one Windows PC, none of the built-in options work at all.</p>- <div class="block table-scroll">- <table class="compare">- <caption class="skip">PasteFerry compared with other options</caption>- <thead><tr><td></td><th scope="col" class="ours">PasteFerry</th><th scope="col">Universal Clipboard</th><th scope="col">AirDrop</th><th scope="col">Chat apps</th></tr></thead>- <tbody>- <tr><th scope="row">Different Apple IDs</th><td class="yes ours">Yes</td><td class="no">No</td><td class="partial">Needs accepting</td><td class="yes">Yes</td></tr>- <tr><th scope="row">Between Mac and Windows</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="yes">Yes</td></tr>- <tr><th scope="row">Different networks (home and office)</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="yes">Yes</td></tr>- <tr><th scope="row">Paste right away, nothing to accept</th><td class="yes ours">Yes</td><td class="yes">Yes</td><td class="no">No</td><td class="no">No</td></tr>- <tr><th scope="row">Files and whole folders</th><td class="yes ours">Yes</td><td class="partial">Unreliable</td><td class="yes">Yes</td><td class="partial">Zip first</td></tr>- <tr><th scope="row">Find something you copied earlier</th><td class="yes ours">Yes</td><td class="no">No</td><td class="no">No</td><td class="partial">Scroll back</td></tr>- <tr><th scope="row">Only your devices can decrypt content</th><td class="yes ours">Yes</td><td class="yes">Yes</td><td class="yes">Yes</td><td class="some">Varies by app</td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="how" aria-labelledby="how-title">- <div class="wrap">- <h2 id="how-title">How it works</h2>- <p class="intro">On the same network, devices find each other without a server. Across networks, official access or your own server exchanges connection information. Direct NAT traversal comes first; encrypted relay is used after direct failure. The diagram shows this general signaling and relay structure.</p>- <figure class="diagram">- <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">- <title id="diagram-title">How PasteFerry connects</title>- <desc id="diagram-desc">Computer A and computer B (Mac or Windows) connect directly over WebRTC. Both connect to your server for signaling. If the direct connection fails, data is relayed through the server's TURN service.</desc>- <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>- <text class="d-title" x="480" y="64" text-anchor="middle">Signaling and relay service</text>- <text class="d-sub" x="480" y="92" text-anchor="middle">Signaling, STUN, TURN relay</text>- <path class="d-sig" d="M140 210V58H360"/>- <path class="d-sig" d="M820 210V58H600"/>- <path class="d-relay" d="M196 210V100H360"/>- <path class="d-relay" d="M764 210V100H600"/>- <text class="d-note" x="210" y="50">Signaling: connection details</text>- <text class="d-note" x="210" y="128">Relay: only if direct fails</text>- <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>- <text class="d-sub" x="160" y="290" text-anchor="middle">You copy here</text>- <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="800" y="262" text-anchor="middle">Mac or Windows</text>- <text class="d-sub" x="800" y="290" text-anchor="middle">You paste here</text>- <path class="d-direct" d="M280 270H680"/>- <text class="d-label" x="480" y="256" text-anchor="middle">Direct WebRTC, DTLS encrypted</text>- <text class="d-note" x="480" y="298" text-anchor="middle">Data moves only between your computers</text>- <g class="d-legend" transform="translate(40 372)">- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">Data (direct)</text>- <path class="d-relay" d="M210 0H238"/><text x="248" y="5">Data (relay, fallback)</text>- <path class="d-sig" d="M470 0H498"/><text x="508" y="5">Signaling</text>- </g>- </svg>- <ul class="points diagram-text">- <li><strong>Direct WebRTC, DTLS encrypted</strong> Data moves only between your computers</li>- <li><strong>Signaling and relay service</strong> Signaling, STUN, TURN relay</li>- <li>Relay: only if direct fails</li>- </ul>- </figure>- </div>- </section>-- <section class="section" id="multi-uplink" aria-labelledby="multi-title">- <div class="wrap">- <h2 id="multi-title">Direct on office networks too</h2>- <p class="intro">Office networks with two ISPs, or carriers with a pool of NAT addresses, have several uplinks and pick one per destination. A single probe only reveals one of them, so connections end up on the relay. PasteFerry probes every uplink and tells the peer about all of them.</p>- <div class="cols">- <div>- <h3>What it does</h3>- <ul class="points">- <li><strong>One shared port.</strong> All connections send and receive on one local UDP port, so the addresses learned from different servers line up.</li>- <li><strong>Every uplink probed.</strong> Seven IP-diverse servers are queried from that port at once, yielding one address per uplink. Addresses poisoned by DNS are dropped first.</li>- <li><strong>All of them sent to the peer.</strong> The peer tries each address; the one matching the real uplink gets through.</li>- <li><strong>Uplinks remembered.</strong> If a round misses an uplink that keeps ports unchanged, its address is filled in as uplink IP plus local port.</li>- <li><strong>A rule for who sends first.</strong> Some routers lock a port when the other side's packet arrives first. One side announces its addresses first; the other sends to them before announcing its own. Retries alternate the order.</li>- <li><strong>Retry direct while idle.</strong>If direct traversal fails and relay is available, sync can use relay. When the connection is idle, the client can retry direct access and release the relay after success.</li>- </ul>- </div>- <div>- <h3>Checked against real network topologies</h3>- <p class="small">The NAT lab builds these topologies with Linux network namespaces and iptables and runs PasteFerry's actual connection code through each. It runs on every commit.</p>- <div class="table-scroll">- <table>- <thead><tr><th scope="col">Scenario</th><th scope="col">Result</th></tr></thead>- <tbody>- <tr><td>Single uplink ↔ home router</td><td>Direct</td></tr>- <tr><td>Two uplinks, previous version (control)</td><td>Relay</td></tr>- <tr><td>Two uplinks ↔ home router</td><td>Direct</td></tr>- <tr><td>Four uplinks ↔ home router</td><td>Direct</td></tr>- <tr><td>Two uplinks, second not probed, no history</td><td>Relay</td></tr>- <tr><td>Two uplinks, second not probed, with history</td><td>Direct</td></tr>- <tr><td>Two uplinks ↔ two uplinks</td><td>Direct</td></tr>- <tr><td>Two uplinks ↔ NAT that randomizes ports</td><td>Relay</td></tr>- <tr><td>Blocked at first, network recovers later</td><td>Relay, then direct</td></tr>- <tr><td>Office router locks a port for unsolicited packets</td><td>Direct</td></tr>- <tr><td>Home router locks a port for unsolicited packets</td><td>Relay, then direct after one retry</td></tr>- <tr><td>No server, same subnet, found over mDNS</td><td>Direct</td></tr>- <tr><td>No server, two subnets, one side remembers the address</td><td>Direct</td></tr>- <tr><td>No server, both block inbound, both remember</td><td>Direct</td></tr>- <tr><td>No server, both block inbound, only one remembers</td><td>No connection (known limit)</td></tr>- <tr><td>No server, subnets isolated from each other</td><td>No connection</td></tr>- </tbody>- </table>- </div>- <p class="small">Measured: a Mac on a 4-uplink office network and one at home could only relay before, capped at 0.6 MB/s by the server's bandwidth. Now they connect directly, about 3 seconds after reaching the server.</p>- <p class="small">Measurements, design trade-offs and lessons learned are in the <a href="../design/nat-traversal.html">design document</a> (in Chinese).</p>- </div>- </div>- </div>- </section>-- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">Your server can't see what you copy</h2>- <div class="cols">- <ul class="points">- <li><strong>No accounts, no stored content.</strong> A device's identity is an Ed25519 key, and its ID is derived from the public key, so the server verifies identity without a user table.</li>- <li><strong>You compare fingerprints when pairing.</strong> Both screens show the same two lines: the fingerprint of each device's key. The server could swap keys in transit, but then the two screens would no longer match. That check is what stops a man in the middle.</li>- <li><strong>Every message after that is signed,</strong> so the server can't impersonate your device. The direct channel's certificate is checked again after the handshake; a mismatch drops the connection.</li>- <li><strong>The relay only forwards ciphertext.</strong> TURN carries encrypted packets, and relay credentials are issued per device and expire after 12 hours.</li>- <li><strong>Same on the local network.</strong> What a device broadcasts on the LAN is an anonymous token that changes daily, not its name; the name is added only while Search nearby is open. Pairing still means comparing fingerprints, and every message is still signed.</li>- </ul>- <figure class="figure-card">- <img src="../assets/screenshots/en/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">- <div class="wrap">- <h2 id="fallback-title">When things go wrong</h2>- <p class="intro">Every network is different. Each of these cases was considered, and each has a test.</p>- <dl class="fallbacks">- <div><dt>Can't find the other computer on the network</dt><dd>Different subnets, guest networks and Wi‑Fi with client isolation block local discovery. Enter the address shown under the other computer's code when pairing; it's remembered afterwards, and if both computers change addresses you enter it once more in the device list.</dd></div>- <div><dt>The system blocks the local network</dt><dd>From macOS 15, the background service needs your permission to reach devices on the local network; Windows asks about the firewall on first run. If either isn't allowed, the app says so and links straight to the fix.</dd></div>- <div><dt>No direct path between the computers</dt><dd>Official access requests relay only after direct failure and within its current allowance. A custom server uses its own TURN relay instead. Content remains end-to-end encrypted in either case.</dd></div>- <div><dt>Public STUN servers unreachable</dt><dd>Public STUN is unreliable in some regions, including mainland China. Your server runs its own STUN, and clients prefer it.</dd></div>- <div><dt>Switching back to direct</dt><dd>If direct traversal fails and relay is available, sync can use relay. When the connection is idle, the client can retry direct access and release the relay after success.</dd></div>- <div><dt>The other computer sleeps, drops off or restarts</dt><dd>A connection that dies silently is noticed, closed and reconnected. Anything you copy meanwhile is kept and added to the other computer's history once it's back, without overwriting what's on its clipboard now.</dd></div>- <div><dt>Server connection drops</dt><dd>Reconnects automatically: the delay starts at 1 second and doubles up to 30, with jitter so devices don't all reconnect at once. Devices on the same network keep syncing.</dd></div>- <div><dt>File too large</dt><dd>Above the limit only a record is synced, pulled when you need it. If the source file is gone by then, you get a clear message instead of a vague failure.</dd></div>- <div><dt>Pasting into plain-text fields</dt><dd>Rich text copied from the web is written as both HTML and plain text, so no markup leaks into what you paste.</dd></div>- <div><dt>A file name Windows doesn't allow</dt><dd>Colons, question marks and a few other characters that are fine on a Mac arrive as the matching full-width characters, so the name still reads the same. Two names that differ only in case never overwrite each other.</dd></div>- <div><dt>Copying a password</dt><dd>On Windows, password managers mark what they copy as "don't record". PasteFerry skips it: not synced, not kept in the history.</dd></div>- <div><dt>Clipboard access not granted yet</dt><dd>Content isn't read, which would block on a prompt a background process can't show. The app asks you to grant access and links straight to the setting.</dd></div>- <div><dt>Background service crashes</dt><dd>launchd on Mac, and PasteFerry's own supervisor on Windows, restart it, throttled to once every 10 seconds.</dd></div>- <div><dt>App updated or moved</dt><dd>On launch the app re-points its login item and restarts the service on the new version.</dd></div>- </dl>- </div>- </section>-- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">Install</h2>- <p class="intro">Install the app on each computer. On the same network you can pair right away; across networks, pick a way for them to find each other. First time? Follow the <a href="start/">quick start</a>.</p>- <div class="install">- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>- <ol>- <li>Download the DMG, open it and drag PasteFerry into Applications.<span class="aside">There's one for Apple silicon and one for Intel; the download page shows how to tell which your Mac has.</span></li>- <li>Open it from Applications.<span class="aside">The first time, macOS says it can't verify the developer: PasteFerry isn't notarized by Apple yet. Go to System Settings → Privacy & Security and click Open Anyway near the bottom. You only do this once.</span></li>- <li>Click Turn on background sync. When macOS asks whether PasteFerry may read the clipboard or find devices on your local network, allow both.</li>- <li>For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.</li>- </ol>- <a class="button" href="download/#macos"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>- <ol>- <li>Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">PasteFerry isn't code-signed yet, so Windows says "Windows protected your PC": click More info, then Run anyway. To skip the installer, get the <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">portable zip</a>.</span></li>- <li>Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it keeps running in the notification area.</li>- <li>For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.</li>- </ol>- <a class="button" href="download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3>- <ol>- <li>On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>; on other distributions, download the tar.gz, extract it and run <code>./PasteFerry/install.sh</code>.</li>- <li>Open PasteFerry from the app menu and click Turn on background sync. From then on it starts when you log in.</li>- <li>For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.</li>- </ol>- <a class="button" href="download/#linux"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Linux</a>- </div>- </div>- <div class="install-more">- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Ways to connect</h3>- <p class="small">Same network? Install and pair. Different networks? Enable official access without hosting a server. Custom servers and Tailscale remain available when you prefer to manage the connection yourself.</p>- <ul class="opts">- <li><a href="official/">Official service</a><span>Across networks, no hosting</span></li>- <li><a href="lan/">Same network</a><span>Nothing to set up</span></li>- <li><a href="cloud/">Self-hosted server</a><span>Control your own capacity</span></li>- <li><a href="tailscale/">Tailscale</a><span>Across networks, no server</span></li>- </ul>- <a class="button quiet" href="start/#server">Compare connection options</a>- </div>- <p class="pairing">Show a pairing code on one computer, enter it on the other, and compare both fingerprint lines before confirming. Existing pairings are kept. Official access needs no peer IP. Enter an address only for LAN subnets or Tailscale.</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">- <div class="wrap">- <h2 id="specs-title">Specifications</h2>- <div class="table-scroll">- <table class="specs">- <tbody>- <tr><th scope="row">Version</th><td>2.3.0, released <time datetime="2026-10-19">October 19, 2026</time></td></tr>- <tr><th scope="row">Mac app</th><td>macOS 13 Ventura or later; separate downloads for Apple silicon and Intel, about 25 MB each, no Rosetta; a universal version for both is about 47 MB</td></tr>- <tr><th scope="row">Windows app</th><td>Windows 10 and Windows 11, x64; installs per user, no administrator rights; about 23 MB download</td></tr>- <tr><th scope="row">Linux app</th><td>x64 and ARM64; .deb (Debian, Ubuntu and similar) or tar.gz (other distributions), about 22 MB; needs an X11 desktop, or a Wayland desktop with XWayland (GNOME, KDE and others include it by default); GTK 3</td></tr>- <tr><th scope="row">Server</th><td>Deployment is needed only for self-hosting; official access needs no server of your own. Self-hosting supports Linux x86_64/ARM64, macOS and Windows 10/11 x64.</td></tr>- <tr><th scope="row">Languages</th><td>English, Simplified Chinese, Traditional Chinese (Taiwan and Hong Kong) and Japanese; follows the system by default, switchable in Settings</td></tr>- <tr><th scope="row">Content</th><td>Plain text, rich text, images and screenshots, files, folders; each type can be turned off</td></tr>- <tr><th scope="row">Transport</th><td>WebRTC data channels, direct first with TURN relay fallback; on the same network, mDNS discovery and connection details over UDP 8788; every uplink probed on multi-uplink networks; files streamed as tar + zstd</td></tr>- <tr><th scope="row">Encryption and identity</th><td>End-to-end DTLS; Ed25519 device keys; every signaling message signed</td></tr>- <tr><th scope="row">Pairing</th><td>6-character code valid for 5 minutes, using an alphabet without look-alikes such as 0/O and 1/I; fingerprints compared by you</td></tr>- <tr><th scope="row">Auto-sync limit</th><td>50 MB by default, adjustable from 1 MB to 1 GB</td></tr>- <tr><th scope="row">History</th><td>3 days by default, adjustable from 1 hour to 30 days; expired items removed automatically</td></tr>- <tr><th scope="row">Measured speed</th><td>A 20 MB file transfers in about 330 ms over a direct LAN connection, checksums matching</td></tr>- <tr><th scope="row">Built with</th><td>Go for the background service and server (pure Go calling Win32 on Windows and speaking the X11 protocol on Linux), Flutter for the app (one codebase for all three systems), Protocol Buffers for messages</td></tr>- <tr><th scope="row">License</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="faq" aria-labelledby="faq-title">- <div class="wrap">- <h2 id="faq-title">Questions</h2>- <div class="faq">- <details>- <summary>Why do .uuremote_ files keep appearing while UU Remote is running?</summary>- <div class="answer"><p>UU Remote writes temporary placeholder files to the system clipboard. Older PasteFerry clients recorded and forwarded them as ordinary files. Version 1.3.2 filters the confirmed placeholder naming pattern on send and receive, and removes placeholder-only history on startup. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold only controls automatic transfer; UU’s UDP P2P setting is unrelated. Upgrade both clients. Other clipboard sync tools may still duplicate ordinary content.</p></div>- </details>- <details>- <summary>How is this different from Universal Clipboard?</summary>- <div class="answer"><p>Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. Now connect across networks by enabling official access, with no server to host. Direct connections first, end-to-end encryption throughout.</p><p>If your Macs share an Apple ID, sit side by side, and you mostly copy text, the built-in feature is already enough.</p></div>- </details>- <details>- <summary>Can the server see what I copy?</summary>- <div class="answer"><p>It cannot decrypt copied content: direct traffic stays between your devices, and relay forwards end-to-end encrypted packets. Official access retains essential device and quota statistics, described in the privacy notice. The public client and server source does not by itself prove how private production storage is operated.</p></div>- </details>- <details>- <summary>Does it connect directly on office networks with several uplinks?</summary>- <div class="answer"><p>Yes. These networks pick an uplink per destination. PasteFerry probes several servers from one port to learn its address on every uplink and sends them all to the peer, which tries each one. A Mac behind a 4-uplink office network connects directly to a home connection in our tests. Peers behind NATs that randomize ports still fall back to the relay.</p></div>- </details>- <details>- <summary>Do I need my own server?</summary>- <div class="answer"><p>No. For different networks, enable <a href="official/">official access</a> on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, <a href="cloud/">self-hosting</a> and <a href="tailscale/">Tailscale</a> remain available.</p></div>- </details>- <details>- <summary>No public IP at home. Can I sync between home and the office?</summary>- <div class="answer"><p>No. For different networks, enable <a href="official/">official access</a> on both computers. No cloud VM or address to configure. It is off by default and currently includes 100 MB/day of relay traffic; direct connections do not use that allowance. LAN, <a href="cloud/">self-hosting</a> and <a href="tailscale/">Tailscale</a> remain available.</p></div>- </details>- <details>- <summary>Both computers are on the same network. Why can't they find each other?</summary>- <div class="answer"><p>Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code.</p><p>On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the <a href="lan/#faq">same network guide</a>.</p></div>- </details>- <details>- <summary>Windows? Linux? iPhone?</summary>- <div class="answer"><p>Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you can drop into Explorer or Office.</p><p>Linux desktops on x64 and ARM64 are supported too: X11, or Wayland with XWayland (GNOME, KDE and others include it by default). Files you copy paste straight into the file manager.</p><p>iPhone and iPad aren't supported: iOS doesn't let apps watch the clipboard in the background, so copy-and-it's-there can't work.</p></div>- </details>- <details>- <summary>Why does the system warn me the first time?</summary>- <div class="answer"><p>PasteFerry isn't notarized by Apple yet, and the Windows build isn't code-signed yet; both require paid certificates.</p><p>On Mac, open System Settings → Privacy & Security and click Open Anyway near the bottom. On Windows, click More info and then Run anyway in the "Windows protected your PC" prompt. You only do this once.</p></div>- </details>- <details>- <summary>What about large files?</summary>- <div class="answer"><p>By default, anything under 50 MB is pushed to the other computer as you copy it, so you can paste right away. Larger files sync as a record; pull them from the history when you need them. The limit is adjustable in Settings.</p></div>- </details>- <details>- <summary>Is it free? Can my company use it?</summary>- <div class="answer"><p>Yes. PasteFerry is open source under the GNU AGPL-3.0, so individuals and companies can use and modify it for free. If you distribute it, or offer a modified version over a network, you publish your source under the same license.</p></div>- </details>- <details>- <summary>Is official relay unlimited?</summary>- <div class="answer"><p>The current default is 100 MB per machine quota group per day, upload plus download, resetting at midnight Beijing time. Reinstalling does not guarantee a fresh allowance. The usage page shows the actual limit, remaining amount and update time. Direct connections still work when relay allowance runs out. Allowances and availability may change; check the app.</p></div>- </details>- </div>- </div>- </section>-<section class="closing" aria-labelledby="closing-title"><div class="wrap"><h2 class="display" id="closing-title">Two computers, one clipboard.</h2>diff --git a/docs/en/lan/index.html b/docs/en/lan/index.htmlindex a4c5ab4..220cf39 100644--- a/docs/en/lan/index.html+++ b/docs/en/lan/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server" aria-current="true">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server" aria-current="true">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/official/index.html b/docs/en/official/index.htmlindex 0fb1e77..226b4d6 100644--- a/docs/en/official/index.html+++ b/docs/en/official/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/privacy/index.html b/docs/en/privacy/index.htmlindex 68ab7d6..a22d13c 100644--- a/docs/en/privacy/index.html+++ b/docs/en/privacy/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/security/index.html b/docs/en/security/index.htmlnew file mode 100644index 0000000..4fcba0b--- /dev/null+++ b/docs/en/security/index.html@@ -0,0 +1,128 @@+<!doctype html>+<html lang="en">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>Security and privacy: end-to-end encryption and pairing verification — PasteFerry</title>+ <meta name="description" content="Each device is identified by a key, you verify fingerprints when pairing, every message is signed, and only your devices can decrypt what you copy.">+ <link rel="canonical" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="Security and privacy: end-to-end encryption and pairing verification — PasteFerry">+ <meta property="og:description" content="Each device is identified by a key, you verify fingerprints when pairing, every message is signed, and only your devices can decrypt what you copy.">+ <meta property="og:url" content="https://pasteferry.cc/en/security/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="en_US">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">Skip to content</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="Page">+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server">Ways to connect</a>+ <a href="../../en/download/">Download</a>+ <details class="menu">+ <summary aria-label="More pages" class="current"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="./" aria-current="page">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/security/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>+ <li><a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../en/">PasteFerry</a></p>+ <h1 class="display">Your server can't see what you copy</h1>+ <p class="lede">Each device is identified by a key, you verify fingerprints when pairing, every message is signed, and only your devices can decrypt what you copy.</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="cols">+ <ul class="points">+ <li><strong>No accounts, no stored content.</strong> A device's identity is an Ed25519 key, and its ID is derived from the public key, so the server verifies identity without a user table.</li>+ <li><strong>You compare fingerprints when pairing.</strong> Both screens show the same two lines: the fingerprint of each device's key. The server could swap keys in transit, but then the two screens would no longer match. That check is what stops a man in the middle.</li>+ <li><strong>Every message after that is signed,</strong> so the server can't impersonate your device. The direct channel's certificate is checked again after the handshake; a mismatch drops the connection.</li>+ <li><strong>The relay only forwards ciphertext.</strong> TURN carries encrypted packets, and relay credentials are issued per device and expire after 12 hours.</li>+ <li><strong>Same on the local network.</strong> What a device broadcasts on the LAN is an anonymous token that changes daily, not its name; the name is added only while Search nearby is open. Pairing still means comparing fingerprints, and every message is still signed.</li>+ </ul>+ <figure class="figure-card">+ <img src="../../assets/screenshots/en/card-verify-dark.png" width="1120" height="800" alt="The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly">+ </figure>+ </div>+ <p class="more"><a href="../../en/privacy/">Privacy policy →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry is open source under the GNU AGPL-3.0.</p>+ <nav aria-label="Footer">+ <a href="https://github.com/baiyuze/pasteferry/releases">All releases</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">Design notes (Chinese)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">License</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">Report an issue</a>+ <a href="../../en/privacy/">Privacy and essential data</a>+ </nav>+ <nav aria-label="Language">+ <a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/security/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>+ <a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/en/server/index.html b/docs/en/server/index.htmlindex a2309c1..d1a442a 100644--- a/docs/en/server/index.html+++ b/docs/en/server/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server" aria-current="true">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server" aria-current="true">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/start/index.html b/docs/en/start/index.htmlindex d3fdf8c..64460fb 100644--- a/docs/en/start/index.html+++ b/docs/en/start/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="./" aria-current="page">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="#server">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="./" aria-current="page">Quick start</a>+ <a class="wide" href="#server">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="./" aria-current="page">Quick start</a></li>+ <li class="narrow"><a href="#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/en/tailscale/index.html b/docs/en/tailscale/index.htmlindex 8e79ad9..0b0a524 100644--- a/docs/en/tailscale/index.html+++ b/docs/en/tailscale/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">Skip to content</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../en/" aria-label="PasteFerry home"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="Page">- <a href="../../en/start/">Quick start</a>- <a class="wide" href="../../en/#how">How it works</a>- <a class="wide" href="../../en/#faq">FAQ</a>- <a class="mid" href="../../en/start/#server" aria-current="true">Ways to connect</a>+ <a href="../../en/features/">Features</a>+ <a class="mid" href="../../en/start/">Quick start</a>+ <a class="wide" href="../../en/start/#server" aria-current="true">Ways to connect</a><a href="../../en/download/">Download</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="More pages"><span>More</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../en/start/">Quick start</a></li>+ <li class="narrow"><a href="../../en/start/#server">Ways to connect</a></li>+ <li><a href="../../en/how/">How it works</a></li>+ <li><a href="../../en/security/">Security</a></li>+ <li><a href="../../en/faq/">FAQ</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">Changelog</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/faq/index.html b/docs/faq/index.htmlnew file mode 100644index 0000000..e5cdf4b--- /dev/null+++ b/docs/faq/index.html@@ -0,0 +1,270 @@+<!doctype html>+<html lang="zh-CN">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>常见问题 — 隔空贴</title>+ <meta name="description" content="安装、连接、同步、费用。没找到答案的话,欢迎反馈。">+ <link rel="canonical" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空贴">+ <meta property="og:title" content="常见问题 — 隔空贴">+ <meta property="og:description" content="安装、连接、同步、费用。没找到答案的话,欢迎反馈。">+ <meta property="og:url" content="https://pasteferry.cc/faq/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og.png">+ <meta property="og:locale" content="zh_CN">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script type="application/ld+json">+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "UU 远程开启时,为什么不断出现 .uuremote_ 文件?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "UU 远程会在系统剪贴板里写入临时占位文件,旧版隔空贴把它们当成普通文件反复记录和转发。1.3.2 在发送和接收时过滤已确认的占位命名,启动时清理纯占位记录。正常空文件、隐藏文件和大文件不受此规则影响。50 MB 只决定是否自动传输,与 UU 的 UDP P2P 设置无关。建议两端都升级;其他软件如果也同步剪贴板,仍可能产生普通内容的重复记录。"+ }+ },+ {+ "@type": "Question",+ "name": "和 macOS 自带的「通用剪贴板」有什么区别?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Mac、Windows、Linux 互通,文字、图片、文件、整个文件夹都可以,不要求同一个账号。现在开启官方服务就能跨网络同步,无需自己搭服务器。优先直连,始终端到端加密。 如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。"+ }+ },+ {+ "@type": "Question",+ "name": "服务器会看到我复制的内容吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "服务器无法解密复制内容:直连时内容不经过中转服务器;中转时转发的是端到端加密数据包。官方服务保留必要设备与用量统计,详见隐私说明。客户端和服务器源码公开,但源码可审计不等于对私有生产存储行为的证明。"+ }+ },+ {+ "@type": "Question",+ "name": "公司网络(双线、多出口)能直连吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "能。这类网络按目标地址选出口,隔空贴会在同一个端口上向多台服务器探测,拿到每个出口的地址一并发给对端,对端逐个尝试。实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。"+ }+ },+ {+ "@type": "Question",+ "name": "必须自己准备服务器吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同网络时,在两台电脑上开启官方服务即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、自建服务器与 Tailscale 继续可用。"+ }+ },+ {+ "@type": "Question",+ "name": "家里没有公网 IP,能在家和公司之间同步吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同网络时,在两台电脑上开启官方服务即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、自建服务器与 Tailscale 继续可用。"+ }+ },+ {+ "@type": "Question",+ "name": "在同一个网络里,为什么找不到另一台?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。 Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见同一网络教程。"+ }+ },+ {+ "@type": "Question",+ "name": "支持 Windows 和 Linux 吗?iPhone 呢?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。 也支持 x64 与 ARM64 的 Linux 桌面:X11,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带)。复制的文件能直接粘进文件管理器。 iPhone 和 iPad 暂不支持:iOS 不允许 App 在后台监听剪贴板,做不到复制后立即同步。"+ }+ },+ {+ "@type": "Question",+ "name": "为什么第一次打开时系统会拦一下?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "隔空贴还没有经过 Apple 公证,Windows 版也还没有代码签名,两者都需要每年付费的证书。 Mac 上到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」;Windows 上在「Windows 已保护你的电脑」提示里点「更多信息」,再点「仍要运行」。都只需要这一次。"+ }+ },+ {+ "@type": "Question",+ "name": "大文件怎么处理?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "默认 50 MB 以内的内容在你复制时就推送到另一台电脑,那边可以直接粘贴;更大的文件只同步一条记录,需要时在复制记录里点「拉取到本机」再传。上限可以在设置里调整。"+ }+ },+ {+ "@type": "Question",+ "name": "免费吗?公司能用吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "免费。隔空贴以 GNU AGPL-3.0 开源,个人和公司都可以免费使用和修改。分发它、或通过网络提供修改过的版本时,需要以同样的许可公开源码。"+ }+ },+ {+ "@type": "Question",+ "name": "官方中转无限量吗?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "当前默认每机器额度组每日 100 MB 中转流量,上传与下载合计,北京时间零点重置。重新安装不会保证获得新额度。用量页显示实际额度、剩余量与更新时间;额度用尽仍可直连。额度与服务可用性可能调整,以客户端显示为准。"+ }+ }+ ]+}+ </script>+</head>+<body>+ <a class="skip" href="#main">跳到正文</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a>+ <nav aria-label="页面导航">+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a>+ <a href="../download/">下载</a>+ <details class="menu">+ <summary aria-label="更多页面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="./" aria-current="page">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a></li>+ <li><a href="../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../en/faq/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href=".././">隔空贴</a></p>+ <h1 class="display">常见问题</h1>+ <p class="lede">安装、连接、同步、费用。没找到答案的话,欢迎反馈。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="faq">+ <details>+ <summary>UU 远程开启时,为什么不断出现 .uuremote_ 文件?</summary>+ <div class="answer"><p>UU 远程会在系统剪贴板里写入临时占位文件,旧版隔空贴把它们当成普通文件反复记录和转发。1.3.2 在发送和接收时过滤已确认的占位命名,启动时清理纯占位记录。正常空文件、隐藏文件和大文件不受此规则影响。50 MB 只决定是否自动传输,与 UU 的 UDP P2P 设置无关。建议两端都升级;其他软件如果也同步剪贴板,仍可能产生普通内容的重复记录。</p></div>+ </details>+ <details>+ <summary>和 macOS 自带的「通用剪贴板」有什么区别?</summary>+ <div class="answer"><p>Mac、Windows、Linux 互通,文字、图片、文件、整个文件夹都可以,不要求同一个账号。现在开启官方服务就能跨网络同步,无需自己搭服务器。优先直连,始终端到端加密。</p><p>如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。</p></div>+ </details>+ <details>+ <summary>服务器会看到我复制的内容吗?</summary>+ <div class="answer"><p>服务器无法解密复制内容:直连时内容不经过中转服务器;中转时转发的是端到端加密数据包。官方服务保留必要设备与用量统计,详见隐私说明。客户端和服务器源码公开,但源码可审计不等于对私有生产存储行为的证明。</p></div>+ </details>+ <details>+ <summary>公司网络(双线、多出口)能直连吗?</summary>+ <div class="answer"><p>能。这类网络按目标地址选出口,隔空贴会在同一个端口上向多台服务器探测,拿到每个出口的地址一并发给对端,对端逐个尝试。实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。</p></div>+ </details>+ <details>+ <summary>必须自己准备服务器吗?</summary>+ <div class="answer"><p>不需要。不同网络时,在两台电脑上开启<a href="../official/">官方服务</a>即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、<a href="../cloud/">自建服务器</a>与 <a href="../tailscale/">Tailscale</a> 继续可用。</p></div>+ </details>+ <details>+ <summary>家里没有公网 IP,能在家和公司之间同步吗?</summary>+ <div class="answer"><p>不需要。不同网络时,在两台电脑上开启<a href="../official/">官方服务</a>即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、<a href="../cloud/">自建服务器</a>与 <a href="../tailscale/">Tailscale</a> 继续可用。</p></div>+ </details>+ <details>+ <summary>在同一个网络里,为什么找不到另一台?</summary>+ <div class="answer"><p>先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。</p><p>Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见<a href="../lan/#faq">同一网络教程</a>。</p></div>+ </details>+ <details>+ <summary>支持 Windows 和 Linux 吗?iPhone 呢?</summary>+ <div class="answer"><p>支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。</p><p>也支持 x64 与 ARM64 的 Linux 桌面:X11,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带)。复制的文件能直接粘进文件管理器。</p><p>iPhone 和 iPad 暂不支持:iOS 不允许 App 在后台监听剪贴板,做不到复制后立即同步。</p></div>+ </details>+ <details>+ <summary>为什么第一次打开时系统会拦一下?</summary>+ <div class="answer"><p>隔空贴还没有经过 Apple 公证,Windows 版也还没有代码签名,两者都需要每年付费的证书。</p><p>Mac 上到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」;Windows 上在「Windows 已保护你的电脑」提示里点「更多信息」,再点「仍要运行」。都只需要这一次。</p></div>+ </details>+ <details>+ <summary>大文件怎么处理?</summary>+ <div class="answer"><p>默认 50 MB 以内的内容在你复制时就推送到另一台电脑,那边可以直接粘贴;更大的文件只同步一条记录,需要时在复制记录里点「拉取到本机」再传。上限可以在设置里调整。</p></div>+ </details>+ <details>+ <summary>免费吗?公司能用吗?</summary>+ <div class="answer"><p>免费。隔空贴以 GNU AGPL-3.0 开源,个人和公司都可以免费使用和修改。分发它、或通过网络提供修改过的版本时,需要以同样的许可公开源码。</p></div>+ </details>+ <details>+ <summary>官方中转无限量吗?</summary>+ <div class="answer"><p>当前默认每机器额度组每日 100 MB 中转流量,上传与下载合计,北京时间零点重置。重新安装不会保证获得新额度。用量页显示实际额度、剩余量与更新时间;额度用尽仍可直连。额度与服务可用性可能调整,以客户端显示为准。</p></div>+ </details>+ </div>+ <p class="more"><a href="https://github.com/baiyuze/pasteferry/issues">反馈问题 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空贴以 GNU AGPL-3.0 开源。</p>+ <nav aria-label="页脚链接">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技术方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">许可说明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">反馈问题</a>+ <a href="../privacy/">隐私与必要数据</a>+ </nav>+ <nav aria-label="语言">+ <a href="../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>+ <a href="../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../en/faq/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/features/index.html b/docs/features/index.htmlnew file mode 100644index 0000000..c1a43e6--- /dev/null+++ b/docs/features/index.html@@ -0,0 +1,300 @@+<!doctype html>+<html lang="zh-CN">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>功能:快捷粘贴、收藏、跨设备复制记录 — 隔空贴</title>+ <meta name="description" content="隔空贴在 Mac、Windows 与 Linux 之间同步剪贴板:复制文字、图片、文件、文件夹,到另一台直接粘贴。按 ⌥V 或 Alt+V 呼出快捷粘贴,常用内容可以收藏,复制记录能搜索、按类型筛选。">+ <link rel="canonical" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="隔空贴">+ <meta property="og:title" content="功能:快捷粘贴、收藏、跨设备复制记录 — 隔空贴">+ <meta property="og:description" content="隔空贴在 Mac、Windows 与 Linux 之间同步剪贴板:复制文字、图片、文件、文件夹,到另一台直接粘贴。按 ⌥V 或 Alt+V 呼出快捷粘贴,常用内容可以收藏,复制记录能搜索、按类型筛选。">+ <meta property="og:url" content="https://pasteferry.cc/features/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="zh_CN">+ <meta property="og:locale:alternate" content="zh_TW">+ <meta property="og:locale:alternate" content="zh_HK">+ <meta property="og:locale:alternate" content="en_US">+ <meta property="og:locale:alternate" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <link rel="stylesheet" href="../assets/features.css">+</head>+<body class="features">+ <a class="skip" href="#main">跳到正文</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a>+ <nav aria-label="页面导航">+ <a href="./" aria-current="page">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a>+ <a href="../download/">下载</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a></li>+ <li><a href="../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../en/features/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">隔空贴的功能</p>+ <h1 class="display">复制粘贴,<br>本该这么顺手。</h1>+ <p class="lede">Mac、Windows、Linux 之间同步剪贴板,复制过的随叫随到。</p>+ <div class="cta">+ <a class="button" href="../download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载隔空贴</a>+ <a class="button quiet" href="../tour/"><span aria-hidden="true">▶</span> 看完整演示</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="../assets/screenshots/history-dark.png" width="2112" height="1472" alt="隔空贴的复制记录:侧边栏有复制记录、收藏、设备、设置,列表里是来自不同电脑的文字、图片、文件和链接">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">在这台复制,<br>到那台粘贴。</h2>+ <p class="f-intro">按下 <span class="k-mac">⌘C</span><span class="k-pc">Ctrl+C</span>,内容就同步到你的其他电脑,到那边按 <span class="k-mac">⌘V</span><span class="k-pc">Ctrl+V</span> 粘贴。不用同一个账号,Mac、Windows、Linux 随便搭配。</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>MacBook</b><kbd>⌘C</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Windows</b><kbd>Ctrl+V</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Linux</b><kbd>Ctrl+V</kbd></div>+ </div>+ <ul class="facts">+ <li><h3>文字、图片、文件、文件夹</h3><p>带格式的文字粘贴到只认纯文本的地方,也不会冒出标签。</p></li>+ <li><h3>50 MB 以内,复制时就传好</h3><p>更大的先同步一条记录,需要时点一下再取。上限可以调。</p></li>+ <li><h3>对方离线也不丢</h3><p>这期间复制的,连上后补进对方的复制记录。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近复制的都在手边。</h2>+ <p class="f-intro">不用切到隔空贴,也不用翻聊天记录。在任何 App 里按一下快捷键,选一条,它就粘贴到你刚才的光标处。</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ <div class="qp-stage" role="img" aria-label="演示:在写邮件时按 ⌥V,弹出快捷粘贴窗口;输入「发票」搜到发票抬头,按回车,它被粘贴进邮件正文" data-typing="[["f", true], ["fa", true], ["fa'p", true], ["fa'piao", true], ["发票", false]]">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>新邮件</span></div>+ <div class="mail-field"><span>收件人:</span><b>王经理</b></div>+ <div class="mail-field"><span>主题:</span><b>开票信息</b></div>+ <div class="mail-body"><p>王经理您好,</p><p>我们的开票信息如下:</p><p class="mail-line"><span class="pasted">发票抬头:上海隔空科技有限公司 税号 91310104MA1K000000</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true"><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd></div>+ <div class="picker">+ <div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">发票</span><i class="caret"></i><span class="ph">搜索</span></span></div>+ <div class="qp-tabs"><span class="on">全部</span><span>文本</span><span>链接</span><span>图片</span><span>文件</span><span>收藏</span></div>+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all">1</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议改到周四下午 3 点,地点不变</span><span class="m">刚刚</span></li><li class="qp-row"><span class="n n-all">2</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分钟前</span></li><li class="qp-row"><span class="n n-all">3</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">图片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 台式机 · 5 分钟前</span></li><li class="qp-row"><span class="n n-all">4</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合同扫描件.pdf 等 3 项</span><span class="m">52 分钟前</span></li><li class="qp-row hit first"><span class="n n-all">5</span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">发票抬头:上海隔空科技有限公司 税号 91310104MA1K000000</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小时前</span></li><li class="qp-row"><span class="n n-all">6</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小时前</span></li><li class="qp-row hit"><span class="n n-all">7</span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">发票寄到财务部,备注订单号</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all">8</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>+ <div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>粘贴</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>纯文本</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只复制</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>关闭</span></div>+ </div>+ </div>+ <ol class="qp-steps">+ <li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何 App 里都行。窗口出现在屏幕中间,选完自动回到原来的 App。</p></li>+ <li data-step="1"><span class="num">2</span><h3>打几个字</h3><p>文字和文件名都能搜。不搜的时候,前 9 条按数字直接选。</p></li>+ <li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就贴好了</h3><p>内容直接粘贴到刚才的光标处。<span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 粘贴纯文本,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只复制不粘贴。</p></li>+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">快捷键可以在设置里更换或关闭。Mac 上直接粘贴需要授予「辅助功能」权限,没授权时选中的内容放进剪贴板,再由你按 ⌘V;Linux 的 Wayland 桌面上也是选中后按 Ctrl+V。</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="fav-title">常用的,<br>收藏起来。</h2>+ <p class="f-intro">发票抬头、地址、常用回复,点一下星标就另存一份。收藏不会过期,清空复制记录也还在。</p>+ <figure class="f-shot" data-reveal>+ <img src="../assets/screenshots/favorites-dark.png" width="2112" height="1472" loading="lazy" alt="收藏页:发票抬头、常用回复、下载链接、营业执照.pdf 等五条收藏,每条右边是蓝色的星标">+ </figure>+ <ul class="facts">+ <li><h3>不会被清理</h3><p>复制记录到期自动清理,收藏一直留着。</p></li>+ <li><h3>另存一份</h3><p>原文件之后改动或删除,都不影响收藏里的那份。</p></li>+ <li><h3>快捷窗口里也有</h3><p>切到「收藏」页签,或者按 <span class="k-mac">⌘D</span><span class="k-pc">Ctrl+D</span> 收藏选中的那一条。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">细节里,<br>也替你想好了。</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>链接单独一栏 <span class="new">新</span></h3>+ <p>复制记录按类型筛选:文本、链接、图片、文件、收藏,一点就分开。</p>+ <div class="mini" aria-hidden="true"><div class="seg"><span data-tab="all" class="on">全部</span><span data-tab="text">文本</span><span data-tab="link">链接</span><span data-tab="image">图片</span><span data-tab="file">文件</span><span data-tab="fav">收藏</span></div><ul class="mini-rows"><li data-kind="text"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议改到周四下午 3 点</span></li><li data-kind="link"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span></li><li data-kind="image"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">图片 · 2.4 MB</span></li><li data-kind="file"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span class="t">季度汇报-终版.key</span></li><li data-kind="link" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://pasteferry.cc/download/</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li><li data-kind="text" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">发票抬头:上海隔空科技有限公司</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li></ul></div>+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>停一下,就看到全文 <span class="new">新</span></h3>+ <p>鼠标在一条上停半秒,弹出完整的文字、放大的图片或全部文件名,不用点开。</p>+ <div class="crop"><img src="../assets/screenshots/hover-dark.png" width="2112" height="1472" loading="lazy" alt="鼠标停在一条会议记录上,弹出的提示框显示它的全文:负责人、发布窗口和监控要求"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>三天里复制的,搜得到</h3>+ <p>按文字内容或文件名搜索,点一下就放回剪贴板。记录默认保留 3 天,最长可以留 30 天。</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合同">合同</span><i class="caret"></i></div>+ <ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合同扫描件.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合同第 3 条改成按季度付款</span></li></ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>大文件,用时再取</h3>+ <p>超过 50 MB 的先只同步一条记录,点「接收」才开始传,不占你的带宽。</p>+ <div class="mini big" aria-hidden="true">+ <svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><div><b>发布演示录屏.mov</b><span>来自 Mac mini · 1.3 GB</span><i class="bar"><i></i></i></div>+ <span class="receive">接收</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>整个文件夹也行</h3>+ <p>复制一个文件夹,到另一台粘贴出来的就是同样的文件夹,结构不变。</p>+ <ul class="mini tree" aria-hidden="true">+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>design-assets</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>logo.svg</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>[email protected]</li>+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>文件名不打架</h3>+ <p>Mac 上能用、Windows 上不合法的字符,收到时换成全角字符,名字照样看得懂。</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>会议纪要 10:30?.md</code></div>+ <div><span>Windows</span><code>会议纪要 10:30?.md</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">家里和公司,<br>也能直连。</h2>+ <p class="f-intro">同一网络里装好就能配对。不在一个网络时,开启官方服务就行,不用自己搭服务器。两台电脑优先打洞直连,打不通才加密中转。</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="示意:家里和公司两个网络里的两台电脑经官方服务找到彼此,然后直接相连">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">官方服务</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">家里</text>+ <text class="n-label" x="756" y="164" text-anchor="end">公司</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">直连 · 端到端加密</text>+ </svg>+ </figure>+ <ul class="facts">+ <li><h3>同一网络</h3><p>不需要服务器,输入配对码就行。</p></li>+ <li><h3>跨网络</h3><p>官方服务、自建服务器或 Tailscale,任选一种。</p></li>+ <li><h3>端到端加密</h3><p>配对时核对安全指纹,服务器看不到内容。</p></li>+ </ul>+ <p class="more"><a href="../start/#server">选择连接方式 →</a><a href="../how/">工作原理 →</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">几个数字。</h2>+ <dl class="numbers" data-reveal>+ <div><dt><b>3</b> <span>个系统</span></dt><dd>macOS、Windows、Linux</dd></div>+ <div><dt><b>50 MB</b> <span>以内</span></dt><dd>复制的同时就传好</dd></div>+ <div><dt><b>≈330 ms</b></dt><dd>局域网直连传 20 MB 文件</dd></div>+ <div><dt><b>0</b> <span>个账号</span></dt><dd>不用注册,配对即用</dd></div>+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">现在就试试。</h2>+ <div class="cta">+ <a class="button" href="../download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载隔空贴</a>+ </div>+ <p class="note">版本 2.3.0,免费开源。macOS 13 及以上;Windows 10、11;Linux(x64 与 ARM64)。</p>+ <a class="start-link" href="../start/">第一次用?看快速开始,三步配好 →</a>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空贴以 GNU AGPL-3.0 开源。</p>+ <nav aria-label="页脚链接">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技术方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">许可说明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">反馈问题</a>+ <a href="../privacy/">隐私与必要数据</a>+ </nav>+ <nav aria-label="语言">+ <a href="../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>+ <a href="../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../en/features/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../assets/site.js" defer></script>+ <script src="../assets/features.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/how/index.html b/docs/how/index.htmlnew file mode 100644index 0000000..8128fb4--- /dev/null+++ b/docs/how/index.html@@ -0,0 +1,262 @@+<!doctype html>+<html lang="zh-CN">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>工作原理:直连、多出口探测与出问题时的处理 — 隔空贴</title>+ <meta name="description" content="按下复制之后发生了什么,两台电脑怎样找到彼此、怎样直连,打不通时怎么办。">+ <link rel="canonical" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空贴">+ <meta property="og:title" content="工作原理:直连、多出口探测与出问题时的处理 — 隔空贴">+ <meta property="og:description" content="按下复制之后发生了什么,两台电脑怎样找到彼此、怎样直连,打不通时怎么办。">+ <meta property="og:url" content="https://pasteferry.cc/how/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og.png">+ <meta property="og:locale" content="zh_CN">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳到正文</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a>+ <nav aria-label="页面导航">+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a>+ <a href="../download/">下载</a>+ <details class="menu">+ <summary aria-label="更多页面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="./" aria-current="page">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a></li>+ <li><a href="../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../en/how/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href=".././">隔空贴</a></p>+ <h1 class="display">工作原理</h1>+ <p class="lede">按下复制之后发生了什么,两台电脑怎样找到彼此、怎样直连,打不通时怎么办。</p>+ </div>+ </section>++ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">按下复制之后</h2>+ <p class="intro">文字、图片、文件、整个文件夹,都走同一条路。</p>+ <ol class="flow">+ <li><h3>察觉</h3><p>Mac 上,后台服务每隔一小段时间看一眼剪贴板的变更计数,只看计数和类型,不需要授权,也不会弹出系统提示;Windows 上,复制的那一刻系统就会通知它。</p></li>+ <li><h3>传输</h3><p>文本随消息一起发出;50 MB 以内的图片和文件打包成流立即推送;更大的文件只发一条记录,等你需要时再传。</p></li>+ <li><h3>粘贴</h3><p>另一台电脑先把内容存到本地,再写入剪贴板。按下 ⌘V 或 Ctrl+V 粘贴出来的,就是本地的真实文件。</p></li>+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title">+ <div class="wrap">+ <h2 id="how-title">隔空贴的连接方式</h2>+ <p class="intro">同一网络里,设备无需服务器就能找到彼此;跨网络时,官方服务或自建服务器帮助交换连接信息。优先打洞直连,失败后才使用加密中转。下图展示通用的信令与中转结构。</p>+ <figure class="diagram">+ <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">+ <title id="diagram-title">隔空贴的连接方式</title>+ <desc id="diagram-desc">电脑 A 与电脑 B(Mac 或 Windows)之间是 WebRTC 直连;两台电脑都通过信令连接到信令与中转服务;直连失败时,数据经服务器的 TURN 中转。</desc>+ <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>+ <text class="d-title" x="480" y="64" text-anchor="middle">信令与中转服务</text>+ <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中转</text>+ <path class="d-sig" d="M140 210V58H360"/>+ <path class="d-sig" d="M820 210V58H600"/>+ <path class="d-relay" d="M196 210V100H360"/>+ <path class="d-relay" d="M764 210V100H600"/>+ <text class="d-note" x="210" y="50">信令:交换连接信息</text>+ <text class="d-note" x="210" y="128">中转:仅在打不通直连时</text>+ <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>+ <text class="d-sub" x="160" y="290" text-anchor="middle">在这里复制</text>+ <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>+ <text class="d-sub" x="800" y="290" text-anchor="middle">在这里粘贴</text>+ <path class="d-direct" d="M280 270H680"/>+ <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直连,DTLS 加密</text>+ <text class="d-note" x="480" y="298" text-anchor="middle">数据只在两台电脑之间传输</text>+ <g class="d-legend" transform="translate(40 372)">+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">数据(直连)</text>+ <path class="d-relay" d="M210 0H238"/><text x="248" y="5">数据(中转,备用)</text>+ <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>+ </g>+ </svg>+ <ul class="points diagram-text">+ <li><strong>WebRTC 直连,DTLS 加密</strong> 数据只在两台电脑之间传输</li>+ <li><strong>信令与中转服务</strong> 信令、STUN、TURN 中转</li>+ <li>中转:仅在打不通直连时</li>+ </ul>+ </figure>+ </div>+ </section>++ <section class="section" id="multi-uplink" aria-labelledby="multi-title">+ <div class="wrap">+ <h2 id="multi-title">公司网络也能直连</h2>+ <p class="intro">公司双线、运营商地址池这类网络有多个出口,按目标地址选走哪一个。只探测一次只会知道其中一个出口,只能经服务器中转。隔空贴会探测每个出口,把地址都告诉对端。</p>+ <div class="cols">+ <div>+ <h3>做了什么</h3>+ <ul class="points">+ <li><strong>共用一个端口。</strong>所有连接从同一个本地 UDP 端口收发,向不同服务器问到的地址才对得上。</li>+ <li><strong>探测每个出口。</strong>在这个端口上同时询问 7 台 IP 分散的服务器,网络有几个出口就拿到几个地址;被 DNS 污染的地址先过滤掉。</li>+ <li><strong>全部告诉对端。</strong>对端逐个尝试,与实际出口吻合的那一个能打通。</li>+ <li><strong>记住见过的出口。</strong>某次漏掉的出口如果不改端口,就用「出口 IP + 本地端口」推算补上。</li>+ <li><strong>定好谁先发包。</strong>有的路由器收到对方先到的包会占住端口。一方先公布出口地址,另一方先往那边发包再公布自己的;重试时两种顺序轮流用。</li>+ <li><strong>空闲时重试直连。</strong>直连失败且中转可用时,先通过中转保持同步。连接空闲时可重试打洞,成功后切回直连并释放中转。</li>+ </ul>+ </div>+ <div>+ <h3>用真实的网络拓扑验证</h3>+ <p class="small">NAT 打洞实验室用 Linux 网络命名空间与 iptables 搭出这些拓扑,用隔空贴真实的连接代码各跑一遍,每次提交代码都自动运行。</p>+ <div class="table-scroll">+ <table>+ <thead><tr><th scope="col">场景</th><th scope="col">结果</th></tr></thead>+ <tbody>+ <tr><td>单出口 ↔ 家用路由器</td><td>直连</td></tr>+ <tr><td>两个出口,旧版本(对照)</td><td>中转</td></tr>+ <tr><td>两个出口 ↔ 家用路由器</td><td>直连</td></tr>+ <tr><td>四个出口 ↔ 家用路由器</td><td>直连</td></tr>+ <tr><td>两个出口,第二条没探测到,没有历史</td><td>中转</td></tr>+ <tr><td>两个出口,第二条没探测到,有历史</td><td>直连</td></tr>+ <tr><td>两个出口 ↔ 两个出口</td><td>直连</td></tr>+ <tr><td>两个出口 ↔ 端口随机分配的 NAT</td><td>中转</td></tr>+ <tr><td>一开始打不通,之后网络恢复</td><td>先中转,随后直连</td></tr>+ <tr><td>公司路由器会为外来的包占住端口</td><td>直连</td></tr>+ <tr><td>家用路由器会为外来的包占住端口</td><td>先中转,重试一次后直连</td></tr>+ <tr><td>没有服务器,同一网段,靠 mDNS 发现</td><td>直连</td></tr>+ <tr><td>没有服务器,两个网段,一边记得对方地址</td><td>直连</td></tr>+ <tr><td>没有服务器,两台都挡入站连接,都记得地址</td><td>直连</td></tr>+ <tr><td>没有服务器,两台都挡入站连接,只有一边记得</td><td>连不上(已知限制)</td></tr>+ <tr><td>没有服务器,两个网段之间被隔离</td><td>连不上</td></tr>+ </tbody>+ </table>+ </div>+ <p class="small">实测:一台在 4 个出口的公司网络里的 Mac 与家里的 Mac,改造前只能中转,速度被服务器带宽限制在 0.6 MB/s;改造后直连,连上服务器后约 3 秒建立。</p>+ <p class="small">测量过程、设计取舍与踩过的坑见<a href="../design/nat-traversal.html">技术方案</a>。</p>+ </div>+ </div>+ </div>+ </section>++ <section class="section" id="fallbacks" aria-labelledby="fallback-title">+ <div class="wrap">+ <h2 id="fallback-title">出问题的时候会发生什么</h2>+ <p class="intro">每个人的网络环境都不一样。下面这些情况都考虑过,也都有对应的测试。</p>+ <dl class="fallbacks">+ <div><dt>同一网络里找不到对方</dt><dd>不同网段、访客网络、开了 AP 隔离的 Wi‑Fi 会挡住局域网发现。配对时输入对方配对码下面显示的地址就行;之后地址会被记住,两边都换了地址时,在设备列表里给它重新输入一次。</dd></div>+ <div><dt>系统拦着局域网</dt><dd>macOS 15 起,后台服务连接局域网里的设备要你允许;Windows 第一次运行时会问防火墙。没放行时 App 会提示,并给出直达的按钮。</dd></div>+ <div><dt>两台电脑打不通直连</dt><dd>官方模式在直连失败后,按当前额度申请中转;自建模式使用自己的 TURN 中转。两种方式的内容均保持端到端加密。</dd></div>+ <div><dt>公共 STUN 服务器连不上</dt><dd>国内访问公共 STUN 时通时断。服务器自带 STUN,客户端优先用它。</dd></div>+ <div><dt>从中转切回直连</dt><dd>直连失败且中转可用时,先通过中转保持同步。连接空闲时可重试打洞,成功后切回直连并释放中转。</dd></div>+ <div><dt>对方睡眠、断网或重启</dt><dd>连接悄悄断了也能发现,立即关闭重连。这期间复制的内容会记下来,连上后补发到对方的复制记录里,但不会覆盖对方此刻剪贴板里的内容。</dd></div>+ <div><dt>服务器断开</dt><dd>自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。同一网络里的设备不受影响,照常同步。</dd></div>+ <div><dt>文件太大</dt><dd>超过上限的只同步一条记录,需要时再拉取。拉取时源文件已经被删,会明确告诉你,而不是不明不白地失败。</dd></div>+ <div><dt>粘贴到只认纯文本的地方</dt><dd>从网页复制的带格式文字会同时写入 HTML 和纯文本两份,粘贴到哪里都不会冒出标签。</dd></div>+ <div><dt>文件名在 Windows 上不合法</dt><dd>Mac 上可以用的冒号、问号等字符,收到时换成对应的全角字符,名字照样看得懂;只差大小写的两个文件也不会互相覆盖。</dd></div>+ <div><dt>复制的是密码</dt><dd>Windows 上,密码管理器复制的内容会带一个「不要记录」的标记,隔空贴看到就跳过:不同步,也不进复制记录。</dd></div>+ <div><dt>还没授权读取剪贴板</dt><dd>不去读内容,否则后台进程会卡在一个看不见的系统弹窗上。App 里会提示你去授权,并给出直达按钮。</dd></div>+ <div><dt>后台服务崩溃</dt><dd>Mac 上由系统的 launchd、Windows 上由隔空贴自带的守护进程自动拉起,10 秒节流,不会疯狂重启。</dd></div>+ <div><dt>更新了 App,或者把它挪了位置</dt><dd>打开 App 时会自动校正登录项,并把后台服务重启到新版本。</dd></div>+ </dl>+ </div>+ </section>++ <section class="section" id="specs" aria-labelledby="specs-title">+ <div class="wrap">+ <h2 id="specs-title">技术规格</h2>+ <div class="table-scroll">+ <table class="specs">+ <tbody>+ <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>发布</td></tr>+ <tr><th scope="row">Mac 客户端</th><td>macOS 13 Ventura 及以上;Apple 芯片与 Intel 芯片各有一个安装包,约 25 MB,不需要 Rosetta;也有两种芯片通用的版本,约 47 MB</td></tr>+ <tr><th scope="row">Windows 客户端</th><td>Windows 10 与 Windows 11,x64;按用户安装,不需要管理员权限;安装包约 23 MB</td></tr>+ <tr><th scope="row">Linux 客户端</th><td>x64 与 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他发行版),约 22 MB;需要 X11 桌面,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带);GTK 3</td></tr>+ <tr><th scope="row">服务器</th><td>仅自建时需要部署;使用官方服务无需自备服务器。自建支持 Linux x86_64/ARM64、macOS 与 Windows 10/11 x64。</td></tr>+ <tr><th scope="row">界面语言</th><td>简体中文、繁體中文(台灣、香港)、English、日本語,默认跟随系统,可在设置里切换</td></tr>+ <tr><th scope="row">同步的内容</th><td>纯文本、带格式的文本、图片与截图、文件、文件夹,可以按类型关闭</td></tr>+ <tr><th scope="row">传输</th><td>WebRTC 数据通道,直连优先,打不通时经 TURN 中转;同一网络里经 mDNS 发现、UDP 8788 交换连接信息;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包</td></tr>+ <tr><th scope="row">加密与身份</th><td>DTLS 端到端加密;设备身份为 Ed25519 密钥;信令消息逐条签名</td></tr>+ <tr><th scope="row">配对</th><td>6 位配对码,5 分钟内有效,字符集去掉了 0/O、1/I 等易混字符;配对时人工核对安全指纹</td></tr>+ <tr><th scope="row">自动同步上限</th><td>默认 50 MB,可在 1 MB 到 1 GB 之间调整</td></tr>+ <tr><th scope="row">记录保留</th><td>默认 3 天,可在 1 小时到 30 天之间调整,到期自动清理</td></tr>+ <tr><th scope="row">实测速度</th><td>局域网直连传输 20 MB 文件约 330 毫秒,校验和一致</td></tr>+ <tr><th scope="row">技术栈</th><td>后台服务与服务器用 Go(Windows 上纯 Go 调用 Win32,Linux 上纯 Go 走 X11 协议),界面用 Flutter(三个系统共用一套代码),消息定义用 Protocol Buffers</td></tr>+ <tr><th scope="row">许可</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空贴以 GNU AGPL-3.0 开源。</p>+ <nav aria-label="页脚链接">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技术方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">许可说明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">反馈问题</a>+ <a href="../privacy/">隐私与必要数据</a>+ </nav>+ <nav aria-label="语言">+ <a href="../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>+ <a href="../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../en/how/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/index.html b/docs/index.htmlindex 23f40c7..7154d18 100644--- a/docs/index.html+++ b/docs/index.html@@ -40,6 +40,7 @@<link rel="icon" href="assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="assets/apple-touch-icon.png"><link rel="stylesheet" href="assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script><script>// 第一次打开时按浏览器语言跳到对应页面;在页面上选过语言后,以选的为准(function () {@@ -65,6 +66,13 @@} catch (e) {}})();</script>+ <script>+ (function () {+ var moved = {"how": "how/", "multi-uplink": "how/#multi-uplink", "install": "download/", "faq": "faq/", "security": "security/", "specs": "how/#specs"};+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script><script type="application/ld+json">{"@context": "https://schema.org",@@ -109,107 +117,6 @@"name": "baiyuze","url": "https://github.com/baiyuze"}- },- {- "@type": "FAQPage",- "mainEntity": [- {- "@type": "Question",- "name": "UU 远程开启时,为什么不断出现 .uuremote_ 文件?",- "acceptedAnswer": {- "@type": "Answer",- "text": "UU 远程会在系统剪贴板里写入临时占位文件,旧版隔空贴把它们当成普通文件反复记录和转发。1.3.2 在发送和接收时过滤已确认的占位命名,启动时清理纯占位记录。正常空文件、隐藏文件和大文件不受此规则影响。50 MB 只决定是否自动传输,与 UU 的 UDP P2P 设置无关。建议两端都升级;其他软件如果也同步剪贴板,仍可能产生普通内容的重复记录。"- }- },- {- "@type": "Question",- "name": "和 macOS 自带的「通用剪贴板」有什么区别?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Mac、Windows、Linux 互通,文字、图片、文件、整个文件夹都可以,不要求同一个账号。现在开启官方服务就能跨网络同步,无需自己搭服务器。优先直连,始终端到端加密。 如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。"- }- },- {- "@type": "Question",- "name": "服务器会看到我复制的内容吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "服务器无法解密复制内容:直连时内容不经过中转服务器;中转时转发的是端到端加密数据包。官方服务保留必要设备与用量统计,详见隐私说明。客户端和服务器源码公开,但源码可审计不等于对私有生产存储行为的证明。"- }- },- {- "@type": "Question",- "name": "公司网络(双线、多出口)能直连吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "能。这类网络按目标地址选出口,隔空贴会在同一个端口上向多台服务器探测,拿到每个出口的地址一并发给对端,对端逐个尝试。实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。"- }- },- {- "@type": "Question",- "name": "必须自己准备服务器吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同网络时,在两台电脑上开启官方服务即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、自建服务器与 Tailscale 继续可用。"- }- },- {- "@type": "Question",- "name": "家里没有公网 IP,能在家和公司之间同步吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同网络时,在两台电脑上开启官方服务即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、自建服务器与 Tailscale 继续可用。"- }- },- {- "@type": "Question",- "name": "在同一个网络里,为什么找不到另一台?",- "acceptedAnswer": {- "@type": "Answer",- "text": "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。 Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见同一网络教程。"- }- },- {- "@type": "Question",- "name": "支持 Windows 和 Linux 吗?iPhone 呢?",- "acceptedAnswer": {- "@type": "Answer",- "text": "支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。 也支持 x64 与 ARM64 的 Linux 桌面:X11,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带)。复制的文件能直接粘进文件管理器。 iPhone 和 iPad 暂不支持:iOS 不允许 App 在后台监听剪贴板,做不到复制后立即同步。"- }- },- {- "@type": "Question",- "name": "为什么第一次打开时系统会拦一下?",- "acceptedAnswer": {- "@type": "Answer",- "text": "隔空贴还没有经过 Apple 公证,Windows 版也还没有代码签名,两者都需要每年付费的证书。 Mac 上到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」;Windows 上在「Windows 已保护你的电脑」提示里点「更多信息」,再点「仍要运行」。都只需要这一次。"- }- },- {- "@type": "Question",- "name": "大文件怎么处理?",- "acceptedAnswer": {- "@type": "Answer",- "text": "默认 50 MB 以内的内容在你复制时就推送到另一台电脑,那边可以直接粘贴;更大的文件只同步一条记录,需要时在复制记录里点「拉取到本机」再传。上限可以在设置里调整。"- }- },- {- "@type": "Question",- "name": "免费吗?公司能用吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "免费。隔空贴以 GNU AGPL-3.0 开源,个人和公司都可以免费使用和修改。分发它、或通过网络提供修改过的版本时,需要以同样的许可公开源码。"- }- },- {- "@type": "Question",- "name": "官方中转无限量吗?",- "acceptedAnswer": {- "@type": "Answer",- "text": "当前默认每机器额度组每日 100 MB 中转流量,上传与下载合计,北京时间零点重置。重新安装不会保证获得新额度。用量页显示实际额度、剩余量与更新时间;额度用尽仍可直连。额度与服务可用性可能调整,以客户端显示为准。"- }- }- ]}]}@@ -222,12 +129,23 @@<div class="wrap"><a class="brand" href="./" aria-label="隔空贴首页"><img src="assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="start/">快速开始</a>- <a class="wide" href="#how">工作原理</a>- <a class="wide" href="#faq">常见问题</a>- <a class="mid" href="start/#server">连接方式</a>+ <a href="features/">功能</a>+ <a class="mid" href="start/">快速开始</a>+ <a class="wide" href="start/#server">连接方式</a><a href="download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="start/">快速开始</a></li>+ <li class="narrow"><a href="start/#server">连接方式</a></li>+ <li><a href="how/">工作原理</a></li>+ <li><a href="security/">安全与隐私</a></li>+ <li><a href="faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>@@ -245,7 +163,7 @@<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="official/">2.1 新增:跨网络同步,无需自建服务器 →</a>+ <a class="release-note" href="features/#quick-paste">2.4 新功能:按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 快捷粘贴 →</a><h1 class="display">在这台电脑复制,<br>到那台电脑粘贴。</h1><p class="lede">Mac、Windows、Linux 互通,文字、图片、文件、整个文件夹都可以,不要求同一个账号。现在开启官方服务就能跨网络同步,无需自己搭服务器。优先直连,始终端到端加密。</p><div class="cta">@@ -281,6 +199,82 @@</div></section>+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近复制的都在手边。</h2>+ <p class="intro">在任何 App 里按一下,复制记录就出现在屏幕中间。按数字或回车,选中的内容直接粘贴进去;常用的内容收藏起来,随时取用。</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="assets/screenshots/card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="快捷粘贴窗口:顶部是搜索框和全部、文本、链接、图片、文件、收藏六个页签,下面是带序号的复制记录,底栏是按键说明">+ </figure>+ <p class="more"><a href="features/#quick-paste">了解快捷粘贴 →</a></p>+ </div>+ </section>++ <section class="section" id="features" aria-labelledby="grid-title">+ <div class="wrap">+ <h2 id="grid-title">不只是同步剪贴板。</h2>+ <ul class="tiles">+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/></svg>+ <h3>快捷粘贴 <span class="new">新</span></h3>+ <p>按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 呼出复制记录,选中就粘贴。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/></svg>+ <h3>收藏 <span class="new">新</span></h3>+ <p>常用的内容另存一份,不会过期。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>+ <h3>文件与文件夹</h3>+ <p>50 MB 以内复制时就已传好,更大的需要时再取。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>+ <h3>复制记录</h3>+ <p>所有设备复制过的都在这里,能搜索,能按类型筛选。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>+ <h3>跨网络</h3>+ <p>开启官方服务,家里和公司之间也能同步。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/></svg>+ <h3>端到端加密</h3>+ <p>优先直连,服务器看不到你复制了什么。</p>+ </li>+ </ul>+ <p class="more"><a href="features/">查看全部功能 →</a></p>+ </div>+ </section>++ <section class="section" id="why" aria-labelledby="why-title">+ <div class="wrap">+ <h2 id="why-title">为什么不用现有的办法</h2>+ <p class="intro">通用剪贴板要同一个 Apple ID、离得够近;隔空投送每次都要点接收;发给自己要手动下载,文件还留在别人的服务器上。一台 Mac 一台 Windows 时,系统自带的办法一个都用不了。</p>+ <div class="block table-scroll">+ <table class="compare">+ <caption class="skip">隔空贴与其他方式的对比</caption>+ <thead><tr><td></td><th scope="col" class="ours">隔空贴</th><th scope="col">通用剪贴板</th><th scope="col">隔空投送</th><th scope="col">聊天软件</th></tr></thead>+ <tbody>+ <tr><th scope="row">不同 Apple ID 之间</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要对方接收</td><td class="yes">可以</td></tr>+ <tr><th scope="row">Mac 与 Windows 之间</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">不在同一个网络(家里和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">复制后直接粘贴,不用点接收</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>+ <tr><th scope="row">文件与整个文件夹</th><td class="yes ours">可以</td><td class="partial">不稳定</td><td class="yes">可以</td><td class="partial">要先打包</td></tr>+ <tr><th scope="row">找回之前复制过的内容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻聊天记录</td></tr>+ <tr><th scope="row">仅自己的设备可解密内容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">视软件而定</td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+<section class="section" id="deploy" aria-labelledby="deploy-title"><div class="wrap"><h2 id="deploy-title">两台电脑怎么连起来</h2>@@ -319,313 +313,6 @@</div></section>- <section class="section" aria-labelledby="history-title">- <div class="wrap">- <h2 id="history-title">所有设备上复制过的,都在这里</h2>- <p class="intro">复制记录保留最近 3 天的内容,随时可以放回剪贴板,图片点开就能预览。50 MB 以内的文件在你复制的时候就已经传好了,更大的文件需要时点一下再拉取。想找以前复制过的,按文字内容或文件名搜一下就有。</p>- <figure class="shot">- <img src="assets/screenshots/history-dark.png" width="2112" height="1472" alt="隔空贴的复制记录:来自 MacBook Air 和 Mac mini 的文件、图片、文字,大文件显示「接收」按钮">- </figure>- </div>- </section>-- <section class="section" aria-labelledby="flow-title">- <div class="wrap">- <h2 id="flow-title">按下复制之后</h2>- <p class="intro">文字、图片、文件、整个文件夹,都走同一条路。</p>- <ol class="flow">- <li><h3>察觉</h3><p>Mac 上,后台服务每隔一小段时间看一眼剪贴板的变更计数,只看计数和类型,不需要授权,也不会弹出系统提示;Windows 上,复制的那一刻系统就会通知它。</p></li>- <li><h3>传输</h3><p>文本随消息一起发出;50 MB 以内的图片和文件打包成流立即推送;更大的文件只发一条记录,等你需要时再传。</p></li>- <li><h3>粘贴</h3><p>另一台电脑先把内容存到本地,再写入剪贴板。按下 ⌘V 或 Ctrl+V 粘贴出来的,就是本地的真实文件。</p></li>- </ol>- </div>- </section>-- <section class="section" aria-labelledby="why-title">- <div class="wrap">- <h2 id="why-title">为什么不用现有的办法</h2>- <p class="intro">通用剪贴板要同一个 Apple ID、离得够近;隔空投送每次都要点接收;发给自己要手动下载,文件还留在别人的服务器上。一台 Mac 一台 Windows 时,系统自带的办法一个都用不了。</p>- <div class="block table-scroll">- <table class="compare">- <caption class="skip">隔空贴与其他方式的对比</caption>- <thead><tr><td></td><th scope="col" class="ours">隔空贴</th><th scope="col">通用剪贴板</th><th scope="col">隔空投送</th><th scope="col">聊天软件</th></tr></thead>- <tbody>- <tr><th scope="row">不同 Apple ID 之间</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要对方接收</td><td class="yes">可以</td></tr>- <tr><th scope="row">Mac 与 Windows 之间</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">不在同一个网络(家里和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">复制后直接粘贴,不用点接收</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>- <tr><th scope="row">文件与整个文件夹</th><td class="yes ours">可以</td><td class="partial">不稳定</td><td class="yes">可以</td><td class="partial">要先打包</td></tr>- <tr><th scope="row">找回之前复制过的内容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻聊天记录</td></tr>- <tr><th scope="row">仅自己的设备可解密内容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">视软件而定</td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="how" aria-labelledby="how-title">- <div class="wrap">- <h2 id="how-title">工作原理</h2>- <p class="intro">同一网络里,设备无需服务器就能找到彼此;跨网络时,官方服务或自建服务器帮助交换连接信息。优先打洞直连,失败后才使用加密中转。下图展示通用的信令与中转结构。</p>- <figure class="diagram">- <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">- <title id="diagram-title">隔空贴的连接方式</title>- <desc id="diagram-desc">电脑 A 与电脑 B(Mac 或 Windows)之间是 WebRTC 直连;两台电脑都通过信令连接到信令与中转服务;直连失败时,数据经服务器的 TURN 中转。</desc>- <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>- <text class="d-title" x="480" y="64" text-anchor="middle">信令与中转服务</text>- <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中转</text>- <path class="d-sig" d="M140 210V58H360"/>- <path class="d-sig" d="M820 210V58H600"/>- <path class="d-relay" d="M196 210V100H360"/>- <path class="d-relay" d="M764 210V100H600"/>- <text class="d-note" x="210" y="50">信令:交换连接信息</text>- <text class="d-note" x="210" y="128">中转:仅在打不通直连时</text>- <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>- <text class="d-sub" x="160" y="290" text-anchor="middle">在这里复制</text>- <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>- <text class="d-sub" x="800" y="290" text-anchor="middle">在这里粘贴</text>- <path class="d-direct" d="M280 270H680"/>- <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直连,DTLS 加密</text>- <text class="d-note" x="480" y="298" text-anchor="middle">数据只在两台电脑之间传输</text>- <g class="d-legend" transform="translate(40 372)">- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">数据(直连)</text>- <path class="d-relay" d="M210 0H238"/><text x="248" y="5">数据(中转,备用)</text>- <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>- </g>- </svg>- <ul class="points diagram-text">- <li><strong>WebRTC 直连,DTLS 加密</strong> 数据只在两台电脑之间传输</li>- <li><strong>信令与中转服务</strong> 信令、STUN、TURN 中转</li>- <li>中转:仅在打不通直连时</li>- </ul>- </figure>- </div>- </section>-- <section class="section" id="multi-uplink" aria-labelledby="multi-title">- <div class="wrap">- <h2 id="multi-title">公司网络也能直连</h2>- <p class="intro">公司双线、运营商地址池这类网络有多个出口,按目标地址选走哪一个。只探测一次只会知道其中一个出口,只能经服务器中转。隔空贴会探测每个出口,把地址都告诉对端。</p>- <div class="cols">- <div>- <h3>做了什么</h3>- <ul class="points">- <li><strong>共用一个端口。</strong>所有连接从同一个本地 UDP 端口收发,向不同服务器问到的地址才对得上。</li>- <li><strong>探测每个出口。</strong>在这个端口上同时询问 7 台 IP 分散的服务器,网络有几个出口就拿到几个地址;被 DNS 污染的地址先过滤掉。</li>- <li><strong>全部告诉对端。</strong>对端逐个尝试,与实际出口吻合的那一个能打通。</li>- <li><strong>记住见过的出口。</strong>某次漏掉的出口如果不改端口,就用「出口 IP + 本地端口」推算补上。</li>- <li><strong>定好谁先发包。</strong>有的路由器收到对方先到的包会占住端口。一方先公布出口地址,另一方先往那边发包再公布自己的;重试时两种顺序轮流用。</li>- <li><strong>空闲时重试直连。</strong>直连失败且中转可用时,先通过中转保持同步。连接空闲时可重试打洞,成功后切回直连并释放中转。</li>- </ul>- </div>- <div>- <h3>用真实的网络拓扑验证</h3>- <p class="small">NAT 打洞实验室用 Linux 网络命名空间与 iptables 搭出这些拓扑,用隔空贴真实的连接代码各跑一遍,每次提交代码都自动运行。</p>- <div class="table-scroll">- <table>- <thead><tr><th scope="col">场景</th><th scope="col">结果</th></tr></thead>- <tbody>- <tr><td>单出口 ↔ 家用路由器</td><td>直连</td></tr>- <tr><td>两个出口,旧版本(对照)</td><td>中转</td></tr>- <tr><td>两个出口 ↔ 家用路由器</td><td>直连</td></tr>- <tr><td>四个出口 ↔ 家用路由器</td><td>直连</td></tr>- <tr><td>两个出口,第二条没探测到,没有历史</td><td>中转</td></tr>- <tr><td>两个出口,第二条没探测到,有历史</td><td>直连</td></tr>- <tr><td>两个出口 ↔ 两个出口</td><td>直连</td></tr>- <tr><td>两个出口 ↔ 端口随机分配的 NAT</td><td>中转</td></tr>- <tr><td>一开始打不通,之后网络恢复</td><td>先中转,随后直连</td></tr>- <tr><td>公司路由器会为外来的包占住端口</td><td>直连</td></tr>- <tr><td>家用路由器会为外来的包占住端口</td><td>先中转,重试一次后直连</td></tr>- <tr><td>没有服务器,同一网段,靠 mDNS 发现</td><td>直连</td></tr>- <tr><td>没有服务器,两个网段,一边记得对方地址</td><td>直连</td></tr>- <tr><td>没有服务器,两台都挡入站连接,都记得地址</td><td>直连</td></tr>- <tr><td>没有服务器,两台都挡入站连接,只有一边记得</td><td>连不上(已知限制)</td></tr>- <tr><td>没有服务器,两个网段之间被隔离</td><td>连不上</td></tr>- </tbody>- </table>- </div>- <p class="small">实测:一台在 4 个出口的公司网络里的 Mac 与家里的 Mac,改造前只能中转,速度被服务器带宽限制在 0.6 MB/s;改造后直连,连上服务器后约 3 秒建立。</p>- <p class="small">测量过程、设计取舍与踩过的坑见<a href="design/nat-traversal.html">技术方案</a>。</p>- </div>- </div>- </div>- </section>-- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">服务器看不到你复制了什么</h2>- <div class="cols">- <ul class="points">- <li><strong>服务器不存账号,也不存内容。</strong>设备身份是一把 Ed25519 密钥,设备 ID 由公钥算出,服务器不需要用户表就能验证身份。</li>- <li><strong>配对时由你核对安全指纹。</strong>两块屏幕会显示同样的两行:双方各自公钥的指纹。服务器有能力替换转发中的公钥,但替换之后两块屏幕就对不上了,这一步就是防中间人的闸门。</li>- <li><strong>之后的每条消息都带签名,</strong>服务器无法冒充你的设备。直连通道的证书在握手后还会再核对一次,不一致立即断开。</li>- <li><strong>中转也只是转发密文。</strong>TURN 转发的是加密后的数据包,中转凭证按设备单独签发,12 小时后过期。</li>- <li><strong>局域网里也一样。</strong>设备在局域网里广播的只是一个每天都变的匿名标识,看不出是谁的电脑,只有打开「搜索附近设备」时才带上设备名;配对同样要核对指纹,之后的消息同样带签名。</li>- </ul>- <figure class="figure-card">- <img src="assets/screenshots/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">- <div class="wrap">- <h2 id="fallback-title">出问题的时候会发生什么</h2>- <p class="intro">每个人的网络环境都不一样。下面这些情况都考虑过,也都有对应的测试。</p>- <dl class="fallbacks">- <div><dt>同一网络里找不到对方</dt><dd>不同网段、访客网络、开了 AP 隔离的 Wi‑Fi 会挡住局域网发现。配对时输入对方配对码下面显示的地址就行;之后地址会被记住,两边都换了地址时,在设备列表里给它重新输入一次。</dd></div>- <div><dt>系统拦着局域网</dt><dd>macOS 15 起,后台服务连接局域网里的设备要你允许;Windows 第一次运行时会问防火墙。没放行时 App 会提示,并给出直达的按钮。</dd></div>- <div><dt>两台电脑打不通直连</dt><dd>官方模式在直连失败后,按当前额度申请中转;自建模式使用自己的 TURN 中转。两种方式的内容均保持端到端加密。</dd></div>- <div><dt>公共 STUN 服务器连不上</dt><dd>国内访问公共 STUN 时通时断。服务器自带 STUN,客户端优先用它。</dd></div>- <div><dt>从中转切回直连</dt><dd>直连失败且中转可用时,先通过中转保持同步。连接空闲时可重试打洞,成功后切回直连并释放中转。</dd></div>- <div><dt>对方睡眠、断网或重启</dt><dd>连接悄悄断了也能发现,立即关闭重连。这期间复制的内容会记下来,连上后补发到对方的复制记录里,但不会覆盖对方此刻剪贴板里的内容。</dd></div>- <div><dt>服务器断开</dt><dd>自动重连,间隔从 1 秒开始翻倍、最长 30 秒,并带随机抖动,避免一群设备同时重连。同一网络里的设备不受影响,照常同步。</dd></div>- <div><dt>文件太大</dt><dd>超过上限的只同步一条记录,需要时再拉取。拉取时源文件已经被删,会明确告诉你,而不是不明不白地失败。</dd></div>- <div><dt>粘贴到只认纯文本的地方</dt><dd>从网页复制的带格式文字会同时写入 HTML 和纯文本两份,粘贴到哪里都不会冒出标签。</dd></div>- <div><dt>文件名在 Windows 上不合法</dt><dd>Mac 上可以用的冒号、问号等字符,收到时换成对应的全角字符,名字照样看得懂;只差大小写的两个文件也不会互相覆盖。</dd></div>- <div><dt>复制的是密码</dt><dd>Windows 上,密码管理器复制的内容会带一个「不要记录」的标记,隔空贴看到就跳过:不同步,也不进复制记录。</dd></div>- <div><dt>还没授权读取剪贴板</dt><dd>不去读内容,否则后台进程会卡在一个看不见的系统弹窗上。App 里会提示你去授权,并给出直达按钮。</dd></div>- <div><dt>后台服务崩溃</dt><dd>Mac 上由系统的 launchd、Windows 上由隔空贴自带的守护进程自动拉起,10 秒节流,不会疯狂重启。</dd></div>- <div><dt>更新了 App,或者把它挪了位置</dt><dd>打开 App 时会自动校正登录项,并把后台服务重启到新版本。</dd></div>- </dl>- </div>- </section>-- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">安装</h2>- <p class="intro">每台电脑装一个 App。同一个网络里装好就能配对;跨网络时,再选一种方式让两台电脑找到彼此。第一次装可以跟着<a href="start/">快速开始</a>。</p>- <div class="install">- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>- <ol>- <li>下载 DMG,打开后把隔空贴拖进「应用程序」。<span class="aside">Apple 芯片与 Intel 芯片各有一版,下载页会告诉你怎么看自己的 Mac 是哪种。</span></li>- <li>从「应用程序」里打开。<span class="aside">第一次会提示「无法验证开发者」:隔空贴还没有经过 Apple 公证。到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」,只需要这一次。</span></li>- <li>点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。</li>- <li>跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。</li>- </ol>- <a class="button" href="download/#macos"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>- <ol>- <li>运行 PasteFerry-Setup.exe。装在当前用户目录下,不需要管理员权限。<span class="aside">隔空贴还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">便携版</a>。</span></li>- <li>打开隔空贴,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。</li>- <li>跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。</li>- </ol>- <a class="button" href="download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3>- <ol>- <li>Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他发行版下载 tar.gz,解压后运行 <code>./PasteFerry/install.sh</code>。</li>- <li>从应用菜单里打开隔空贴,点「启用后台同步」。之后它随登录自动启动。</li>- <li>跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。</li>- </ol>- <a class="button" href="download/#linux"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Linux 版</a>- </div>- </div>- <div class="install-more">- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>连接方式</h3>- <p class="small">同一网络里装好就能配对;不同网络里,开启官方服务即可,无需自建。也保留自建服务器与 Tailscale,按你的需要选择。</p>- <ul class="opts">- <li><a href="official/">官方服务</a><span>跨网络,无需自建</span></li>- <li><a href="lan/">同一网络</a><span>什么都不用部署</span></li>- <li><a href="cloud/">自建公网服务器</a><span>自己管理容量与部署</span></li>- <li><a href="tailscale/">Tailscale</a><span>跨网络,不用服务器</span></li>- </ul>- <a class="button quiet" href="start/#server">对比连接方式</a>- </div>- <p class="pairing">一台生成配对码,另一台输入;核对两边的安全指纹后确认。已有配对关系可以继续使用。 官方服务无需填写对端 IP;仅局域网跨网段或 Tailscale 配对时填写对端地址。</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">- <div class="wrap">- <h2 id="specs-title">技术规格</h2>- <div class="table-scroll">- <table class="specs">- <tbody>- <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>发布</td></tr>- <tr><th scope="row">Mac 客户端</th><td>macOS 13 Ventura 及以上;Apple 芯片与 Intel 芯片各有一个安装包,约 25 MB,不需要 Rosetta;也有两种芯片通用的版本,约 47 MB</td></tr>- <tr><th scope="row">Windows 客户端</th><td>Windows 10 与 Windows 11,x64;按用户安装,不需要管理员权限;安装包约 23 MB</td></tr>- <tr><th scope="row">Linux 客户端</th><td>x64 与 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他发行版),约 22 MB;需要 X11 桌面,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带);GTK 3</td></tr>- <tr><th scope="row">服务器</th><td>仅自建时需要部署;使用官方服务无需自备服务器。自建支持 Linux x86_64/ARM64、macOS 与 Windows 10/11 x64。</td></tr>- <tr><th scope="row">界面语言</th><td>简体中文、繁體中文(台灣、香港)、English、日本語,默认跟随系统,可在设置里切换</td></tr>- <tr><th scope="row">同步的内容</th><td>纯文本、带格式的文本、图片与截图、文件、文件夹,可以按类型关闭</td></tr>- <tr><th scope="row">传输</th><td>WebRTC 数据通道,直连优先,打不通时经 TURN 中转;同一网络里经 mDNS 发现、UDP 8788 交换连接信息;多出口网络逐个探测每个出口;文件以 tar + zstd 流式打包</td></tr>- <tr><th scope="row">加密与身份</th><td>DTLS 端到端加密;设备身份为 Ed25519 密钥;信令消息逐条签名</td></tr>- <tr><th scope="row">配对</th><td>6 位配对码,5 分钟内有效,字符集去掉了 0/O、1/I 等易混字符;配对时人工核对安全指纹</td></tr>- <tr><th scope="row">自动同步上限</th><td>默认 50 MB,可在 1 MB 到 1 GB 之间调整</td></tr>- <tr><th scope="row">记录保留</th><td>默认 3 天,可在 1 小时到 30 天之间调整,到期自动清理</td></tr>- <tr><th scope="row">实测速度</th><td>局域网直连传输 20 MB 文件约 330 毫秒,校验和一致</td></tr>- <tr><th scope="row">技术栈</th><td>后台服务与服务器用 Go(Windows 上纯 Go 调用 Win32,Linux 上纯 Go 走 X11 协议),界面用 Flutter(三个系统共用一套代码),消息定义用 Protocol Buffers</td></tr>- <tr><th scope="row">许可</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="faq" aria-labelledby="faq-title">- <div class="wrap">- <h2 id="faq-title">常见问题</h2>- <div class="faq">- <details>- <summary>UU 远程开启时,为什么不断出现 .uuremote_ 文件?</summary>- <div class="answer"><p>UU 远程会在系统剪贴板里写入临时占位文件,旧版隔空贴把它们当成普通文件反复记录和转发。1.3.2 在发送和接收时过滤已确认的占位命名,启动时清理纯占位记录。正常空文件、隐藏文件和大文件不受此规则影响。50 MB 只决定是否自动传输,与 UU 的 UDP P2P 设置无关。建议两端都升级;其他软件如果也同步剪贴板,仍可能产生普通内容的重复记录。</p></div>- </details>- <details>- <summary>和 macOS 自带的「通用剪贴板」有什么区别?</summary>- <div class="answer"><p>Mac、Windows、Linux 互通,文字、图片、文件、整个文件夹都可以,不要求同一个账号。现在开启官方服务就能跨网络同步,无需自己搭服务器。优先直连,始终端到端加密。</p><p>如果你的两台 Mac 是同一个 Apple ID、总在一起、主要复制文字,系统自带的已经够用了。</p></div>- </details>- <details>- <summary>服务器会看到我复制的内容吗?</summary>- <div class="answer"><p>服务器无法解密复制内容:直连时内容不经过中转服务器;中转时转发的是端到端加密数据包。官方服务保留必要设备与用量统计,详见隐私说明。客户端和服务器源码公开,但源码可审计不等于对私有生产存储行为的证明。</p></div>- </details>- <details>- <summary>公司网络(双线、多出口)能直连吗?</summary>- <div class="answer"><p>能。这类网络按目标地址选出口,隔空贴会在同一个端口上向多台服务器探测,拿到每个出口的地址一并发给对端,对端逐个尝试。实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。</p></div>- </details>- <details>- <summary>必须自己准备服务器吗?</summary>- <div class="answer"><p>不需要。不同网络时,在两台电脑上开启<a href="official/">官方服务</a>即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、<a href="cloud/">自建服务器</a>与 <a href="tailscale/">Tailscale</a> 继续可用。</p></div>- </details>- <details>- <summary>家里没有公网 IP,能在家和公司之间同步吗?</summary>- <div class="answer"><p>不需要。不同网络时,在两台电脑上开启<a href="official/">官方服务</a>即可,不用购买云主机或填写地址。默认关闭,当前提供每日 100 MB 中转额度,直连不消耗此额度。局域网、<a href="cloud/">自建服务器</a>与 <a href="tailscale/">Tailscale</a> 继续可用。</p></div>- </details>- <details>- <summary>在同一个网络里,为什么找不到另一台?</summary>- <div class="answer"><p>先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。</p><p>Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见<a href="lan/#faq">同一网络教程</a>。</p></div>- </details>- <details>- <summary>支持 Windows 和 Linux 吗?iPhone 呢?</summary>- <div class="answer"><p>支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。</p><p>也支持 x64 与 ARM64 的 Linux 桌面:X11,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等默认都带)。复制的文件能直接粘进文件管理器。</p><p>iPhone 和 iPad 暂不支持:iOS 不允许 App 在后台监听剪贴板,做不到复制后立即同步。</p></div>- </details>- <details>- <summary>为什么第一次打开时系统会拦一下?</summary>- <div class="answer"><p>隔空贴还没有经过 Apple 公证,Windows 版也还没有代码签名,两者都需要每年付费的证书。</p><p>Mac 上到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」;Windows 上在「Windows 已保护你的电脑」提示里点「更多信息」,再点「仍要运行」。都只需要这一次。</p></div>- </details>- <details>- <summary>大文件怎么处理?</summary>- <div class="answer"><p>默认 50 MB 以内的内容在你复制时就推送到另一台电脑,那边可以直接粘贴;更大的文件只同步一条记录,需要时在复制记录里点「拉取到本机」再传。上限可以在设置里调整。</p></div>- </details>- <details>- <summary>免费吗?公司能用吗?</summary>- <div class="answer"><p>免费。隔空贴以 GNU AGPL-3.0 开源,个人和公司都可以免费使用和修改。分发它、或通过网络提供修改过的版本时,需要以同样的许可公开源码。</p></div>- </details>- <details>- <summary>官方中转无限量吗?</summary>- <div class="answer"><p>当前默认每机器额度组每日 100 MB 中转流量,上传与下载合计,北京时间零点重置。重新安装不会保证获得新额度。用量页显示实际额度、剩余量与更新时间;额度用尽仍可直连。额度与服务可用性可能调整,以客户端显示为准。</p></div>- </details>- </div>- </div>- </section>-<section class="closing" aria-labelledby="closing-title"><div class="wrap"><h2 class="display" id="closing-title">两台电脑,一个剪贴板。</h2>diff --git a/docs/ja/cloud/index.html b/docs/ja/cloud/index.htmlindex c1dff50..9f55f2a 100644--- a/docs/ja/cloud/index.html+++ b/docs/ja/cloud/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server" aria-current="true">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server" aria-current="true">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/download/index.html b/docs/ja/download/index.htmlindex 798eda8..f2fd8d1 100644--- a/docs/ja/download/index.html+++ b/docs/ja/download/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a><a href="./" aria-current="page">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/faq/index.html b/docs/ja/faq/index.htmlnew file mode 100644index 0000000..f42fd33--- /dev/null+++ b/docs/ja/faq/index.html@@ -0,0 +1,270 @@+<!doctype html>+<html lang="ja">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>よくある質問 — PasteFerry</title>+ <meta name="description" content="インストール、接続、同期、料金について。答えが見つからなければお知らせください。">+ <link rel="canonical" href="https://pasteferry.cc/ja/faq/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="よくある質問 — PasteFerry">+ <meta property="og:description" content="インストール、接続、同期、料金について。答えが見つからなければお知らせください。">+ <meta property="og:url" content="https://pasteferry.cc/ja/faq/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script type="application/ld+json">+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "UU Remote の使用中に .uuremote_ ファイルが増え続けるのはなぜですか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "UU Remote は一時的なプレースホルダーファイルをシステムのクリップボードに書き込みます。旧版の PasteFerry はそれを通常のファイルとして記録・転送していました。1.3.2 では確認済みの命名パターンを送受信時に除外し、起動時にプレースホルダーだけの履歴を削除します。通常の空ファイル、隠しファイル、大容量ファイルは対象外です。50 MB は自動転送のしきい値であり、UU の UDP P2P 設定とは関係ありません。両端を更新してください。他のクリップボード同期ツールによる通常コンテンツの重複は起こり得ます。"+ }+ },+ {+ "@type": "Question",+ "name": "macOS のユニバーサルクリップボードとの違いは?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Mac・Windows・Linux でテキスト、画像、ファイル、フォルダを同期。同じアカウントは不要。公式サービスをオンにすれば、サーバーを構築せずに別ネットワーク間でも使えます。直接接続を優先し、常にエンドツーエンド暗号化。 2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。"+ }+ },+ {+ "@type": "Question",+ "name": "サーバーにコピーした内容は見えますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "コピー内容は復号できません。直接通信は端末間で行い、中継はエンドツーエンド暗号化されたパケットを転送します。公式サービスは必要な端末・使用量統計を保持します。公開ソースだけで非公開の本番保存動作まで証明できるわけではありません。"+ }+ },+ {+ "@type": "Question",+ "name": "出口が複数ある会社のネットワークでも直接つながりますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "つながります。こうしたネットワークは宛先ごとに出口を選びます。PasteFerry はひとつのポートから複数のサーバーに問い合わせて出口ごとのアドレスを集め、すべて相手に送り、相手がひとつずつ試します。テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。"+ }+ },+ {+ "@type": "Question",+ "name": "サーバーは自分で用意する必要がありますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不要です。別ネットワークなら両方で公式サービスを有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、独自サーバー、Tailscale も使えます。"+ }+ },+ {+ "@type": "Question",+ "name": "自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不要です。別ネットワークなら両方で公式サービスを有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、独自サーバー、Tailscale も使えます。"+ }+ },+ {+ "@type": "Question",+ "name": "同じネットワークなのに、もう一台が見つからないのはなぜ?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。 Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは同じネットワークでの手順を。"+ }+ },+ {+ "@type": "Question",+ "name": "Windows や Linux に対応していますか?iPhone は?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。 x64 と ARM64 の Linux デスクトップにも対応しています。X11、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)で動きます。コピーしたファイルはファイルマネージャーにそのまま貼り付けられます。 iPhone と iPad には対応していません。iOS ではアプリがバックグラウンドでクリップボードを監視できないため、コピーしてすぐ同期することができないからです。"+ }+ },+ {+ "@type": "Question",+ "name": "初めて開くときにシステムに止められるのはなぜ?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "PasteFerry はまだ Apple の公証を受けておらず、Windows 版もコード署名していません。どちらも毎年費用のかかる証明書が必要です。 Mac では「システム設定 → プライバシーとセキュリティ」でページ下部の「このまま開く」をクリック、Windows では「Windows によって PC が保護されました」で「詳細情報」から「実行」を押してください。どちらも一度だけで済みます。"+ }+ },+ {+ "@type": "Question",+ "name": "大きなファイルはどうなりますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "初期設定では 50 MB までのものはコピーした時点でもう一台に送られ、そのまま貼り付けられます。それより大きいファイルは記録だけを同期し、必要なときに履歴から「このデバイスに取り込む」で転送します。上限は「設定」で変えられます。"+ }+ },+ {+ "@type": "Question",+ "name": "無料ですか?会社で使えますか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "無料です。PasteFerry は GNU AGPL-3.0 のオープンソースで、個人も会社も無料で使い、改変できます。配布する場合や、改変したものをネットワーク越しに提供する場合は、同じライセンスでソースコードを公開する必要があります。"+ }+ },+ {+ "@type": "Question",+ "name": "公式中継は無制限ですか?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "現在の標準中継上限は端末の上限グループごとに送受信合計 100 MB/日で、北京時間午前 0 時にリセットします。再インストールで新たな残量が得られる保証はありません。使用量画面に実際の上限、残量、更新時刻を表示します。上限に達しても直接接続は利用できます。上限と提供状況は変更される場合があるため、アプリでご確認ください。"+ }+ }+ ]+}+ </script>+</head>+<body>+ <a class="skip" href="#main">本文へ移動</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="ページ内の移動">+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/download/">ダウンロード</a>+ <details class="menu">+ <summary aria-label="その他のページ" class="current"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="./" aria-current="page">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../ja/">PasteFerry</a></p>+ <h1 class="display">よくある質問</h1>+ <p class="lede">インストール、接続、同期、料金について。答えが見つからなければお知らせください。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="faq">+ <details>+ <summary>UU Remote の使用中に .uuremote_ ファイルが増え続けるのはなぜですか?</summary>+ <div class="answer"><p>UU Remote は一時的なプレースホルダーファイルをシステムのクリップボードに書き込みます。旧版の PasteFerry はそれを通常のファイルとして記録・転送していました。1.3.2 では確認済みの命名パターンを送受信時に除外し、起動時にプレースホルダーだけの履歴を削除します。通常の空ファイル、隠しファイル、大容量ファイルは対象外です。50 MB は自動転送のしきい値であり、UU の UDP P2P 設定とは関係ありません。両端を更新してください。他のクリップボード同期ツールによる通常コンテンツの重複は起こり得ます。</p></div>+ </details>+ <details>+ <summary>macOS のユニバーサルクリップボードとの違いは?</summary>+ <div class="answer"><p>Mac・Windows・Linux でテキスト、画像、ファイル、フォルダを同期。同じアカウントは不要。公式サービスをオンにすれば、サーバーを構築せずに別ネットワーク間でも使えます。直接接続を優先し、常にエンドツーエンド暗号化。</p><p>2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。</p></div>+ </details>+ <details>+ <summary>サーバーにコピーした内容は見えますか?</summary>+ <div class="answer"><p>コピー内容は復号できません。直接通信は端末間で行い、中継はエンドツーエンド暗号化されたパケットを転送します。公式サービスは必要な端末・使用量統計を保持します。公開ソースだけで非公開の本番保存動作まで証明できるわけではありません。</p></div>+ </details>+ <details>+ <summary>出口が複数ある会社のネットワークでも直接つながりますか?</summary>+ <div class="answer"><p>つながります。こうしたネットワークは宛先ごとに出口を選びます。PasteFerry はひとつのポートから複数のサーバーに問い合わせて出口ごとのアドレスを集め、すべて相手に送り、相手がひとつずつ試します。テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。</p></div>+ </details>+ <details>+ <summary>サーバーは自分で用意する必要がありますか?</summary>+ <div class="answer"><p>不要です。別ネットワークなら両方で<a href="../../ja/official/">公式サービス</a>を有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、<a href="../../ja/cloud/">独自サーバー</a>、<a href="../../ja/tailscale/">Tailscale</a> も使えます。</p></div>+ </details>+ <details>+ <summary>自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?</summary>+ <div class="answer"><p>不要です。別ネットワークなら両方で<a href="../../ja/official/">公式サービス</a>を有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、<a href="../../ja/cloud/">独自サーバー</a>、<a href="../../ja/tailscale/">Tailscale</a> も使えます。</p></div>+ </details>+ <details>+ <summary>同じネットワークなのに、もう一台が見つからないのはなぜ?</summary>+ <div class="answer"><p>まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。</p><p>Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは<a href="../../ja/lan/#faq">同じネットワークでの手順</a>を。</p></div>+ </details>+ <details>+ <summary>Windows や Linux に対応していますか?iPhone は?</summary>+ <div class="answer"><p>Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。</p><p>x64 と ARM64 の Linux デスクトップにも対応しています。X11、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)で動きます。コピーしたファイルはファイルマネージャーにそのまま貼り付けられます。</p><p>iPhone と iPad には対応していません。iOS ではアプリがバックグラウンドでクリップボードを監視できないため、コピーしてすぐ同期することができないからです。</p></div>+ </details>+ <details>+ <summary>初めて開くときにシステムに止められるのはなぜ?</summary>+ <div class="answer"><p>PasteFerry はまだ Apple の公証を受けておらず、Windows 版もコード署名していません。どちらも毎年費用のかかる証明書が必要です。</p><p>Mac では「システム設定 → プライバシーとセキュリティ」でページ下部の「このまま開く」をクリック、Windows では「Windows によって PC が保護されました」で「詳細情報」から「実行」を押してください。どちらも一度だけで済みます。</p></div>+ </details>+ <details>+ <summary>大きなファイルはどうなりますか?</summary>+ <div class="answer"><p>初期設定では 50 MB までのものはコピーした時点でもう一台に送られ、そのまま貼り付けられます。それより大きいファイルは記録だけを同期し、必要なときに履歴から「このデバイスに取り込む」で転送します。上限は「設定」で変えられます。</p></div>+ </details>+ <details>+ <summary>無料ですか?会社で使えますか?</summary>+ <div class="answer"><p>無料です。PasteFerry は GNU AGPL-3.0 のオープンソースで、個人も会社も無料で使い、改変できます。配布する場合や、改変したものをネットワーク越しに提供する場合は、同じライセンスでソースコードを公開する必要があります。</p></div>+ </details>+ <details>+ <summary>公式中継は無制限ですか?</summary>+ <div class="answer"><p>現在の標準中継上限は端末の上限グループごとに送受信合計 100 MB/日で、北京時間午前 0 時にリセットします。再インストールで新たな残量が得られる保証はありません。使用量画面に実際の上限、残量、更新時刻を表示します。上限に達しても直接接続は利用できます。上限と提供状況は変更される場合があるため、アプリでご確認ください。</p></div>+ </details>+ </div>+ <p class="more"><a href="https://github.com/baiyuze/pasteferry/issues">問題を報告 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry は GNU AGPL-3.0 のオープンソースです。</p>+ <nav aria-label="フッターのリンク">+ <a href="https://github.com/baiyuze/pasteferry/releases">すべてのリリース</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術資料(中国語)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">ライセンス</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">問題を報告</a>+ <a href="../../ja/privacy/">プライバシーと必要なデータ</a>+ </nav>+ <nav aria-label="言語">+ <a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/ja/features/index.html b/docs/ja/features/index.htmlnew file mode 100644index 0000000..dbd4d9e--- /dev/null+++ b/docs/ja/features/index.html@@ -0,0 +1,300 @@+<!doctype html>+<html lang="ja">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>機能:クイックペースト、お気に入り、デバイスをまたぐ履歴 — PasteFerry</title>+ <meta name="description" content="PasteFerry は Mac、Windows、Linux の間でクリップボードを同期します。テキスト、画像、ファイル、フォルダをコピーして、別のパソコンでそのままペースト。⌥V か Alt+V でクイックペースト、お気に入り、履歴の検索と種類別の表示も。">+ <link rel="canonical" href="https://pasteferry.cc/ja/features/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="機能:クイックペースト、お気に入り、デバイスをまたぐ履歴 — PasteFerry">+ <meta property="og:description" content="PasteFerry は Mac、Windows、Linux の間でクリップボードを同期します。テキスト、画像、ファイル、フォルダをコピーして、別のパソコンでそのままペースト。⌥V か Alt+V でクイックペースト、お気に入り、履歴の検索と種類別の表示も。">+ <meta property="og:url" content="https://pasteferry.cc/ja/features/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="ja_JP">+ <meta property="og:locale:alternate" content="zh_CN">+ <meta property="og:locale:alternate" content="zh_TW">+ <meta property="og:locale:alternate" content="zh_HK">+ <meta property="og:locale:alternate" content="en_US">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <link rel="stylesheet" href="../../assets/features.css">+</head>+<body class="features">+ <a class="skip" href="#main">本文へ移動</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="ページ内の移動">+ <a href="./" aria-current="page">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/download/">ダウンロード</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">PasteFerry の機能</p>+ <h1 class="display">コピペは、<br>こうあるべき。</h1>+ <p class="lede">Mac、Windows、Linux の間でクリップボードを同期。コピーしたものは、いつでも呼び出せます。</p>+ <div class="cta">+ <a class="button" href="../../ja/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>PasteFerry をダウンロード</a>+ <a class="button quiet" href="../../ja/tour/"><span aria-hidden="true">▶</span> 紹介ムービーを見る</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="../../assets/screenshots/ja/history-dark.png" width="2112" height="1472" alt="PasteFerry の履歴:サイドバーに履歴・お気に入り・デバイス・設定、一覧には各パソコンからのテキスト、画像、ファイル、リンク">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">こっちでコピー、<br>あっちでペースト。</h2>+ <p class="f-intro"><span class="k-mac">⌘C</span><span class="k-pc">Ctrl+C</span> を押すと、ほかのパソコンに同期されます。向こうで <span class="k-mac">⌘V</span><span class="k-pc">Ctrl+V</span> を押すだけ。同じアカウントは不要で、Mac、Windows、Linux を自由に組み合わせられます。</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>MacBook</b><kbd>⌘C</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Windows</b><kbd>Ctrl+V</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Linux</b><kbd>Ctrl+V</kbd></div>+ </div>+ <ul class="facts">+ <li><h3>テキスト、画像、ファイル、フォルダ</h3><p>書式付きテキストをプレーンテキストの欄に貼っても、タグは出ません。</p></li>+ <li><h3>50 MB までは、コピーした時点で転送済み</h3><p>大きいものはまず記録だけ同期し、必要なときに取得。上限は変更できます。</p></li>+ <li><h3>相手がオフラインでも失われない</h3><p>その間にコピーしたものは、つながった後に相手の履歴へ届きます。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 の新機能</span></p>+ <h2 class="f-h2" id="qp-title"><span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> で、<br>履歴をその場に。</h2>+ <p class="f-intro">アプリを切り替える必要も、チャットをさかのぼる必要もありません。どのアプリでもショートカットを押して選ぶだけで、カーソルの位置にペーストされます。</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ <div class="qp-stage" role="img" aria-label="デモ:メールを書いている途中で ⌥V を押すとクイックペーストが開き、「請求」で検索した請求先をリターンでメール本文にペースト" data-typing="[["せ", true], ["せい", true], ["せいきゅ", true], ["せいきゅう", true], ["請求", false]]">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>新規メッセージ</span></div>+ <div class="mail-field"><span>宛先:</span><b>佐藤様</b></div>+ <div class="mail-field"><span>件名:</span><b>請求先について</b></div>+ <div class="mail-body"><p>佐藤様</p><p>請求先は以下のとおりです。</p><p class="mail-line"><span class="pasted">請求先:株式会社フェリーラボ 登録番号 T1234567890123</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true"><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd></div>+ <div class="picker">+ <div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">請求</span><i class="caret"></i><span class="ph">検索</span></span></div>+ <div class="qp-tabs"><span class="on">すべて</span><span>テキスト</span><span>リンク</span><span>画像</span><span>ファイル</span><span>お気に入り</span></div>+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all">1</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">打ち合わせは木曜 15 時に変更、場所は同じ</span><span class="m">たった今</span></li><li class="qp-row"><span class="n n-all">2</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分前</span></li><li class="qp-row"><span class="n n-all">3</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">画像</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows デスクトップ · 5 分前</span></li><li class="qp-row"><span class="n n-all">4</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">契約書_署名済み.pdf ほか 2 件</span><span class="m">52 分前</span></li><li class="qp-row hit first"><span class="n n-all">5</span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">請求先:株式会社フェリーラボ 登録番号 T1234567890123</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 時間前</span></li><li class="qp-row"><span class="n n-all">6</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 時間前</span></li><li class="qp-row hit"><span class="n n-all">7</span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">請求書は経理部宛て、注文番号を記載</span><span class="m">1 日前</span></li><li class="qp-row"><span class="n n-all">8</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 日前</span></li></ol>+ <div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>ペースト</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>プレーンテキスト</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>コピーのみ</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>お気に入りに追加</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>閉じる</span></div>+ </div>+ </div>+ <ol class="qp-steps">+ <li data-step="0"><span class="num">1</span><h3><span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> を押す</h3><p>どのアプリでも。画面の中央に開き、選び終わると元のアプリに戻ります。</p></li>+ <li data-step="1"><span class="num">2</span><h3>数文字を入力</h3><p>テキストもファイル名も検索できます。検索しないときは、最初の 9 件を数字で選べます。</p></li>+ <li data-step="2"><span class="num">3</span><h3><span class="k-mac">↩</span><span class="k-pc">Enter</span> を押せば完了</h3><p>カーソルの位置にペーストされます。<span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> でプレーンテキスト、<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> はコピーだけ。</p></li>+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">ショートカットは設定で変更・オフにできます。Mac で直接ペーストするにはアクセシビリティの許可が必要で、許可しない場合はコピーされるので ⌘V で貼り付けます。Linux の Wayland でも、選んだ後に Ctrl+V で貼り付けます。</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 の新機能</span></p>+ <h2 class="f-h2" id="fav-title">よく使うものは、<br>お気に入りに。</h2>+ <p class="f-intro">請求先、住所、定型の返信。星をクリックすれば別に保存されます。お気に入りは期限切れにならず、履歴を消しても残ります。</p>+ <figure class="f-shot" data-reveal>+ <img src="../../assets/screenshots/ja/favorites-dark.png" width="2112" height="1472" loading="lazy" alt="お気に入りページ:請求先、定型の返信、ダウンロードリンク、PDF など 5 件。それぞれ右に青い星">+ </figure>+ <ul class="facts">+ <li><h3>自動では削除されない</h3><p>履歴は期限が来ると消えますが、お気に入りは残ります。</p></li>+ <li><h3>別のコピーとして保存</h3><p>元のファイルを変更・削除しても、お気に入りは影響を受けません。</p></li>+ <li><h3>クイックペーストでも</h3><p>「お気に入り」タブに切り替えるか、<span class="k-mac">⌘D</span><span class="k-pc">Ctrl+D</span> で選んだ項目をお気に入りに。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">細かいところまで、<br>考えてあります。</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>リンクは専用のタブに <span class="new">新機能</span></h3>+ <p>履歴を種類で絞り込み:テキスト、リンク、画像、ファイル、お気に入り。クリックひとつで。</p>+ <div class="mini" aria-hidden="true"><div class="seg"><span data-tab="all" class="on">すべて</span><span data-tab="text">テキスト</span><span data-tab="link">リンク</span><span data-tab="image">画像</span><span data-tab="file">ファイル</span><span data-tab="fav">お気に入り</span></div><ul class="mini-rows"><li data-kind="text"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">打ち合わせは木曜 15 時に変更</span></li><li data-kind="link"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span></li><li data-kind="image"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">画像 · 2.4 MB</span></li><li data-kind="file"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span class="t">四半期報告_最終版.key</span></li><li data-kind="link" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://pasteferry.cc/download/</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li><li data-kind="text" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">請求先:株式会社フェリーラボ</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li></ul></div>+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>ポインタを置くだけで全文 <span class="new">新機能</span></h3>+ <p>項目にポインタを 0.5 秒置くと、全文、大きな画像、すべてのファイル名が表示されます。</p>+ <div class="crop"><img src="../../assets/screenshots/ja/hover-dark.png" width="2112" height="1472" loading="lazy" alt="会議メモにポインタを置くと、全文(担当、公開時間、監視)がカードに表示される"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>コピーしたものを検索</h3>+ <p>テキストやファイル名で検索し、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="契約">契約</span><i class="caret"></i></div>+ <ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>契約書_署名済み.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>契約第 3 条を四半期払いに変更</span></li></ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>大きなファイルは必要なときに</h3>+ <p>50 MB を超えるものはまず記録だけを同期し、「受信」をクリックしたときに転送します。</p>+ <div class="mini big" aria-hidden="true">+ <svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><div><b>発表デモ.mov</b><span>Mac mini から · 1.3 GB</span><i class="bar"><i></i></i></div>+ <span class="receive">受信</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>フォルダごとでも</h3>+ <p>フォルダをコピーすれば、向こうには同じ構成のフォルダがそのままペーストされます。</p>+ <ul class="mini tree" aria-hidden="true">+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>design-assets</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>logo.svg</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>[email protected]</li>+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>ファイル名も安心</h3>+ <p>Mac では使えて Windows では使えない文字は全角に置き換えるので、名前はそのまま読めます。</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>議事録 10:30?.md</code></div>+ <div><span>Windows</span><code>議事録 10:30?.md</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">自宅と職場も、<br>直接つながる。</h2>+ <p class="f-intro">同じネットワークなら、入れてペアリングするだけ。別のネットワークでも公式サービスをオンにすれば、自前のサーバーは不要です。可能な限り直接つながり、だめなときだけ暗号化して中継します。</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="図:自宅と職場のネットワークにある 2 台のパソコンが公式サービスを介して互いを見つけ、直接つながる">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">公式サービス</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">自宅</text>+ <text class="n-label" x="756" y="164" text-anchor="end">職場</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">直接接続 · エンドツーエンド暗号化</text>+ </svg>+ </figure>+ <ul class="facts">+ <li><h3>同じネットワーク</h3><p>サーバー不要。ペアリングコードを入れるだけ。</p></li>+ <li><h3>別のネットワーク</h3><p>公式サービス、自前のサーバー、Tailscale から選べます。</p></li>+ <li><h3>エンドツーエンド暗号化</h3><p>ペアリング時に指紋を照合。サーバーは内容を見られません。</p></li>+ </ul>+ <p class="more"><a href="../../ja/start/#server">接続方法を選ぶ →</a><a href="../../ja/how/">しくみ →</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">数字で見る。</h2>+ <dl class="numbers" data-reveal>+ <div><dt><b>3</b> <span>つの OS</span></dt><dd>macOS、Windows、Linux</dd></div>+ <div><dt><b>50 MB</b> <span>まで</span></dt><dd>コピーと同時に転送</dd></div>+ <div><dt><b>≈330 ms</b></dt><dd>LAN で 20 MB のファイルを転送</dd></div>+ <div><dt><b>0</b> <span>アカウント</span></dt><dd>登録不要、ペアリングだけ</dd></div>+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">さっそく試す。</h2>+ <div class="cta">+ <a class="button" href="../../ja/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>PasteFerry をダウンロード</a>+ </div>+ <p class="note">バージョン 2.3.0、無料・オープンソース。macOS 13 以降、Windows 10・11、Linux(x64 と ARM64)。</p>+ <a class="start-link" href="../../ja/start/">はじめての方は、3 ステップのはじめかたへ →</a>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry は GNU AGPL-3.0 のオープンソースです。</p>+ <nav aria-label="フッターのリンク">+ <a href="https://github.com/baiyuze/pasteferry/releases">すべてのリリース</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術資料(中国語)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">ライセンス</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">問題を報告</a>+ <a href="../../ja/privacy/">プライバシーと必要なデータ</a>+ </nav>+ <nav aria-label="言語">+ <a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script src="../../assets/features.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/ja/how/index.html b/docs/ja/how/index.htmlnew file mode 100644index 0000000..6ab2fc7--- /dev/null+++ b/docs/ja/how/index.html@@ -0,0 +1,262 @@+<!doctype html>+<html lang="ja">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>PasteFerry のしくみ:直接接続、複数回線の探索、障害時の動作</title>+ <meta name="description" content="コピーした後に何が起きるのか。2 台のパソコンがどう互いを見つけて直接つながり、つながらないときはどうなるのか。">+ <link rel="canonical" href="https://pasteferry.cc/ja/how/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="PasteFerry のしくみ:直接接続、複数回線の探索、障害時の動作">+ <meta property="og:description" content="コピーした後に何が起きるのか。2 台のパソコンがどう互いを見つけて直接つながり、つながらないときはどうなるのか。">+ <meta property="og:url" content="https://pasteferry.cc/ja/how/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">本文へ移動</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="ページ内の移動">+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/download/">ダウンロード</a>+ <details class="menu">+ <summary aria-label="その他のページ" class="current"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="./" aria-current="page">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../ja/">PasteFerry</a></p>+ <h1 class="display">しくみ</h1>+ <p class="lede">コピーした後に何が起きるのか。2 台のパソコンがどう互いを見つけて直接つながり、つながらないときはどうなるのか。</p>+ </div>+ </section>++ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">コピーしたあと、何が起きるか</h2>+ <p class="intro">テキストも画像も、ファイルもフォルダも、同じ道を通ります。</p>+ <ol class="flow">+ <li><h3>気づく</h3><p>Mac ではバックグラウンドサービスが短い間隔でクリップボードの変更カウントを確認します。カウントと種類を見るだけなので許可は不要で、確認ダイアログも出ません。Windows ではコピーした瞬間にシステムが知らせます。</p></li>+ <li><h3>送る</h3><p>テキストはメッセージと一緒に送ります。50 MB までの画像とファイルはその場でストリームとして送り、それより大きいファイルは記録だけを送って、必要になったときに転送します。</p></li>+ <li><h3>貼り付ける</h3><p>受け取った側はまず内容をローカルに保存してから、クリップボードに入れます。⌘V や Ctrl+V で貼り付けられるのは、手元にある本物のファイルです。</p></li>+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title">+ <div class="wrap">+ <h2 id="how-title">PasteFerry の接続のしかた</h2>+ <p class="intro">同じネットワークではサーバーなしで端末を検出します。別ネットワークでは公式サービスまたは独自サーバーが接続情報を交換。直接接続を優先し、失敗時に暗号化中継を使います。図は共通のシグナリングと中継構成です。</p>+ <figure class="diagram">+ <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">+ <title id="diagram-title">PasteFerry の接続のしかた</title>+ <desc id="diagram-desc">コンピューター A と B(Mac または Windows)は WebRTC で直接つながります。どちらもシグナリングのためにシグナリング・中継サービスへ接続し、直接接続に失敗したときはサーバーの TURN でデータを中継します。</desc>+ <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>+ <text class="d-title" x="480" y="64" text-anchor="middle">シグナリング・中継サービス</text>+ <text class="d-sub" x="480" y="92" text-anchor="middle">シグナリング、STUN、TURN 中継</text>+ <path class="d-sig" d="M140 210V58H360"/>+ <path class="d-sig" d="M820 210V58H600"/>+ <path class="d-relay" d="M196 210V100H360"/>+ <path class="d-relay" d="M764 210V100H600"/>+ <text class="d-note" x="210" y="50">シグナリング:接続情報の交換</text>+ <text class="d-note" x="210" y="128">中継:直接つながらないときだけ</text>+ <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>+ <text class="d-sub" x="160" y="290" text-anchor="middle">ここでコピー</text>+ <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="800" y="262" text-anchor="middle">Mac または Windows</text>+ <text class="d-sub" x="800" y="290" text-anchor="middle">ここで貼り付け</text>+ <path class="d-direct" d="M280 270H680"/>+ <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直接接続、DTLS 暗号化</text>+ <text class="d-note" x="480" y="298" text-anchor="middle">データは 2 台のあいだだけを流れる</text>+ <g class="d-legend" transform="translate(40 372)">+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">データ(直接)</text>+ <path class="d-relay" d="M210 0H238"/><text x="248" y="5">データ(中継、予備)</text>+ <path class="d-sig" d="M470 0H498"/><text x="508" y="5">シグナリング</text>+ </g>+ </svg>+ <ul class="points diagram-text">+ <li><strong>WebRTC 直接接続、DTLS 暗号化</strong> データは 2 台のあいだだけを流れる</li>+ <li><strong>シグナリング・中継サービス</strong> シグナリング、STUN、TURN 中継</li>+ <li>中継:直接つながらないときだけ</li>+ </ul>+ </figure>+ </div>+ </section>++ <section class="section" id="multi-uplink" aria-labelledby="multi-title">+ <div class="wrap">+ <h2 id="multi-title">会社のネットワークでも直接つながる</h2>+ <p class="intro">2 つの回線を持つ会社や、キャリアの NAT アドレスプールのようなネットワークには出口が複数あり、宛先ごとに出口が変わります。一度調べただけでは出口のひとつしか分からず、中継頼みになります。PasteFerry はすべての出口を調べ、そのアドレスをすべて相手に伝えます。</p>+ <div class="cols">+ <div>+ <h3>やっていること</h3>+ <ul class="points">+ <li><strong>ポートはひとつ。</strong>すべての接続をひとつのローカル UDP ポートで送受信するので、別々のサーバーから得たアドレスがかみ合います。</li>+ <li><strong>出口をすべて調べる。</strong>そのポートから IP の散らばった 7 台のサーバーに同時に問い合わせ、出口の数だけアドレスを得ます。DNS 汚染されたアドレスは先に除外します。</li>+ <li><strong>すべて相手に伝える。</strong>相手はひとつずつ試し、実際の出口と合うものがつながります。</li>+ <li><strong>見た出口を覚えておく。</strong>ポートを書き換えない出口を取りこぼしたときは、「出口の IP +ローカルポート」で補います。</li>+ <li><strong>どちらが先に送るかを決める。</strong>相手のパケットが先に届くとポートをふさいでしまうルーターがあります。片方が先にアドレスを公開し、もう片方はそこへ送ってから自分のアドレスを公開します。再試行では順番を入れ替えます。</li>+ <li><strong>待機中に直接接続を再試行。</strong>直接接続に失敗して中継が利用可能なら、中継で同期を続けます。待機中に直接接続を再試行し、成功したら中継を解放します。</li>+ </ul>+ </div>+ <div>+ <h3>実際のネットワーク構成で検証</h3>+ <p class="small">NAT 穴あけ実験室では、Linux のネットワーク名前空間と iptables でこれらの構成を組み、PasteFerry の本物の接続コードをそれぞれで動かします。コミットのたびに自動で実行されます。</p>+ <div class="table-scroll">+ <table>+ <thead><tr><th scope="col">構成</th><th scope="col">結果</th></tr></thead>+ <tbody>+ <tr><td>出口ひとつ ↔ 家庭用ルーター</td><td>直接</td></tr>+ <tr><td>出口ふたつ、旧バージョン(対照)</td><td>中継</td></tr>+ <tr><td>出口ふたつ ↔ 家庭用ルーター</td><td>直接</td></tr>+ <tr><td>出口よっつ ↔ 家庭用ルーター</td><td>直接</td></tr>+ <tr><td>出口ふたつ、2 本目を取りこぼし、履歴なし</td><td>中継</td></tr>+ <tr><td>出口ふたつ、2 本目を取りこぼし、履歴あり</td><td>直接</td></tr>+ <tr><td>出口ふたつ ↔ 出口ふたつ</td><td>直接</td></tr>+ <tr><td>出口ふたつ ↔ ポートをランダムに割り当てる NAT</td><td>中継</td></tr>+ <tr><td>最初はつながらず、あとでネットワークが回復</td><td>中継のあと直接</td></tr>+ <tr><td>会社のルーターが外からのパケットでポートをふさぐ</td><td>直接</td></tr>+ <tr><td>家庭用ルーターが外からのパケットでポートをふさぐ</td><td>中継のあと、1 回の再試行で直接</td></tr>+ <tr><td>サーバーなし、同じサブネット、mDNS で発見</td><td>直接</td></tr>+ <tr><td>サーバーなし、別のサブネット、片方が相手のアドレスを覚えている</td><td>直接</td></tr>+ <tr><td>サーバーなし、両方が受信をブロック、両方がアドレスを覚えている</td><td>直接</td></tr>+ <tr><td>サーバーなし、両方が受信をブロック、片方だけが覚えている</td><td>つながらない(既知の制限)</td></tr>+ <tr><td>サーバーなし、サブネット同士が遮断されている</td><td>つながらない</td></tr>+ </tbody>+ </table>+ </div>+ <p class="small">実測:出口が 4 つある会社の Mac と自宅の Mac は、以前は中継しかできず、サーバーの帯域で 0.6 MB/s に抑えられていました。いまは直接つながり、サーバーに接続してから約 3 秒で確立します。</p>+ <p class="small">測定の過程、設計の判断、ハマった点は<a href="../../design/nat-traversal.html">技術資料</a>(中国語)にまとめています。</p>+ </div>+ </div>+ </div>+ </section>++ <section class="section" id="fallbacks" aria-labelledby="fallback-title">+ <div class="wrap">+ <h2 id="fallback-title">うまくいかないときに起きること</h2>+ <p class="intro">ネットワークの事情は人それぞれです。ここに挙げたケースはどれも想定済みで、テストがあります。</p>+ <dl class="fallbacks">+ <div><dt>同じネットワークなのに相手が見つからない</dt><dd>サブネットが違う、ゲストネットワーク、クライアント分離(AP アイソレーション)が有効な Wi‑Fi では、LAN 内の検出が届きません。ペアリング時に相手のコードの下に表示されたアドレスを入力してください。アドレスはその後も記憶され、両方のアドレスが変わったときはデバイス一覧からもう一度入力します。</dd></div>+ <div><dt>システムがローカルネットワークを止めている</dt><dd>macOS 15 以降、バックグラウンドサービスが LAN 上のデバイスに接続するにはあなたの許可が要ります。Windows は初回起動時にファイアウォールについて聞いてきます。許可されていないときはアプリが知らせ、設定へ直接飛べるボタンを出します。</dd></div>+ <div><dt>2 台が直接つながらない</dt><dd>公式モードでは直接接続に失敗した後、残量の範囲内で中継を申請します。独自サーバーではその TURN 中継を使います。どちらも内容はエンドツーエンド暗号化されます。</dd></div>+ <div><dt>公開 STUN サーバーにつながらない</dt><dd>中国本土などでは公開 STUN が不安定です。サーバーは STUN を内蔵していて、クライアントはそちらを優先します。</dd></div>+ <div><dt>直接接続へ切り替える</dt><dd>直接接続に失敗して中継が利用可能なら、中継で同期を続けます。待機中に直接接続を再試行し、成功したら中継を解放します。</dd></div>+ <div><dt>相手がスリープ、切断、再起動した</dt><dd>黙って切れた接続にも気づき、すぐに閉じて再接続します。そのあいだにコピーしたものは記録しておき、つながったら相手の履歴に追加します。相手のいまのクリップボードは上書きしません。</dd></div>+ <div><dt>サーバーとの接続が切れた</dt><dd>自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。同じネットワークのデバイスは影響を受けず、そのまま同期します。</dd></div>+ <div><dt>ファイルが大きすぎる</dt><dd>上限を超えるものは記録だけを同期し、必要なときに取り込みます。そのとき元のファイルが消えていれば、あいまいな失敗ではなく、はっきりそう伝えます。</dd></div>+ <div><dt>プレーンテキストしか受け付けない場所に貼り付ける</dt><dd>Web からコピーした書式付きテキストは HTML とプレーンテキストの両方で書き込むので、どこに貼り付けてもタグが混ざりません。</dd></div>+ <div><dt>Windows では使えないファイル名</dt><dd>Mac では使えるコロンや疑問符などは、対応する全角文字に置き換えて受け取るので、名前はそのまま読めます。大文字と小文字だけが違う 2 つのファイルが上書きし合うこともありません。</dd></div>+ <div><dt>パスワードをコピーした</dt><dd>Windows ではパスワードマネージャーがコピーした内容に「記録しない」印が付きます。PasteFerry はそれを見て飛ばします。同期も履歴への保存もしません。</dd></div>+ <div><dt>クリップボードの読み取りをまだ許可していない</dt><dd>内容は読みに行きません。読みに行くと、バックグラウンドプロセスが見えないダイアログで止まってしまうからです。アプリが許可を促し、設定へ直接飛べるボタンを出します。</dd></div>+ <div><dt>バックグラウンドサービスが落ちた</dt><dd>Mac ではシステムの launchd が、Windows では PasteFerry 自身の監視プロセスが再起動します。10 秒に 1 回までに抑え、暴走はしません。</dd></div>+ <div><dt>アプリを更新した、または移動した</dt><dd>アプリを開いたときにログイン項目を正しい場所に向け直し、バックグラウンドサービスを新しいバージョンで再起動します。</dd></div>+ </dl>+ </div>+ </section>++ <section class="section" id="specs" aria-labelledby="specs-title">+ <div class="wrap">+ <h2 id="specs-title">仕様</h2>+ <div class="table-scroll">+ <table class="specs">+ <tbody>+ <tr><th scope="row">バージョン</th><td>2.3.0(<time datetime="2026-10-19">2026 年 10 月 19 日</time>公開)</td></tr>+ <tr><th scope="row">Mac アプリ</th><td>macOS 13 Ventura 以降。Apple シリコン版と Intel 版に分かれ、ダウンロードはそれぞれ約 25 MB で Rosetta 不要。両方で動くユニバーサル版は約 47 MB</td></tr>+ <tr><th scope="row">Windows アプリ</th><td>Windows 10 と Windows 11、x64。ユーザーごとのインストールで管理者権限不要。ダウンロードは約 23 MB</td></tr>+ <tr><th scope="row">Linux アプリ</th><td>x64 と ARM64。.deb(Debian、Ubuntu など)または tar.gz(ほかのディストリビューション)、約 22 MB。X11 のデスクトップ、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)が必要。GTK 3</td></tr>+ <tr><th scope="row">サーバー</th><td>構築が必要なのは独自運用の場合のみ。公式サービスなら自分のサーバーは不要です。独自運用は Linux x86_64/ARM64、macOS、Windows 10/11 x64 に対応。</td></tr>+ <tr><th scope="row">表示言語</th><td>日本語、英語、簡体字中国語、繁体字中国語(台湾・香港)。初期設定はシステムに合わせ、「設定」で切り替え可能</td></tr>+ <tr><th scope="row">同期する内容</th><td>プレーンテキスト、書式付きテキスト、画像とスクリーンショット、ファイル、フォルダ。種類ごとにオフにできる</td></tr>+ <tr><th scope="row">転送</th><td>WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。同じネットワークでは mDNS で発見し、UDP 8788 で接続情報を交換。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送</td></tr>+ <tr><th scope="row">暗号化と身元</th><td>DTLS によるエンドツーエンド暗号化。デバイスの身元は Ed25519 の鍵。シグナリングのメッセージはすべて署名付き</td></tr>+ <tr><th scope="row">ペアリング</th><td>5 分間有効な 6 桁のコード。0/O や 1/I のような紛らわしい文字は使わない。指紋は人が照合</td></tr>+ <tr><th scope="row">自動同期の上限</th><td>初期値 50 MB、1 MB〜1 GB で調整可能</td></tr>+ <tr><th scope="row">履歴の保存期間</th><td>初期値 3 日、1 時間〜30 日で調整可能。期限が来たら自動で削除</td></tr>+ <tr><th scope="row">実測の速度</th><td>LAN の直接接続で 20 MB のファイルを約 330 ミリ秒で転送、チェックサム一致</td></tr>+ <tr><th scope="row">技術スタック</th><td>バックグラウンドサービスとサーバーは Go(Windows では Go から Win32 を直接呼び出し、Linux では Go で X11 プロトコルを直接扱う)、アプリは Flutter(3 つの OS で同じコード)、メッセージ定義は Protocol Buffers</td></tr>+ <tr><th scope="row">ライセンス</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry は GNU AGPL-3.0 のオープンソースです。</p>+ <nav aria-label="フッターのリンク">+ <a href="https://github.com/baiyuze/pasteferry/releases">すべてのリリース</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術資料(中国語)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">ライセンス</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">問題を報告</a>+ <a href="../../ja/privacy/">プライバシーと必要なデータ</a>+ </nav>+ <nav aria-label="言語">+ <a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/ja/index.html b/docs/ja/index.htmlindex 1aab02e..744a452 100644--- a/docs/ja/index.html+++ b/docs/ja/index.html@@ -40,6 +40,14 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script>+ (function () {+ var moved = {"how": "how/", "multi-uplink": "how/#multi-uplink", "install": "download/", "faq": "faq/", "security": "security/", "specs": "how/#specs"};+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script><script type="application/ld+json">{"@context": "https://schema.org",@@ -84,107 +92,6 @@"name": "baiyuze","url": "https://github.com/baiyuze"}- },- {- "@type": "FAQPage",- "mainEntity": [- {- "@type": "Question",- "name": "UU Remote の使用中に .uuremote_ ファイルが増え続けるのはなぜですか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "UU Remote は一時的なプレースホルダーファイルをシステムのクリップボードに書き込みます。旧版の PasteFerry はそれを通常のファイルとして記録・転送していました。1.3.2 では確認済みの命名パターンを送受信時に除外し、起動時にプレースホルダーだけの履歴を削除します。通常の空ファイル、隠しファイル、大容量ファイルは対象外です。50 MB は自動転送のしきい値であり、UU の UDP P2P 設定とは関係ありません。両端を更新してください。他のクリップボード同期ツールによる通常コンテンツの重複は起こり得ます。"- }- },- {- "@type": "Question",- "name": "macOS のユニバーサルクリップボードとの違いは?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Mac・Windows・Linux でテキスト、画像、ファイル、フォルダを同期。同じアカウントは不要。公式サービスをオンにすれば、サーバーを構築せずに別ネットワーク間でも使えます。直接接続を優先し、常にエンドツーエンド暗号化。 2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。"- }- },- {- "@type": "Question",- "name": "サーバーにコピーした内容は見えますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "コピー内容は復号できません。直接通信は端末間で行い、中継はエンドツーエンド暗号化されたパケットを転送します。公式サービスは必要な端末・使用量統計を保持します。公開ソースだけで非公開の本番保存動作まで証明できるわけではありません。"- }- },- {- "@type": "Question",- "name": "出口が複数ある会社のネットワークでも直接つながりますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "つながります。こうしたネットワークは宛先ごとに出口を選びます。PasteFerry はひとつのポートから複数のサーバーに問い合わせて出口ごとのアドレスを集め、すべて相手に送り、相手がひとつずつ試します。テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。"- }- },- {- "@type": "Question",- "name": "サーバーは自分で用意する必要がありますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不要です。別ネットワークなら両方で公式サービスを有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、独自サーバー、Tailscale も使えます。"- }- },- {- "@type": "Question",- "name": "自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不要です。別ネットワークなら両方で公式サービスを有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、独自サーバー、Tailscale も使えます。"- }- },- {- "@type": "Question",- "name": "同じネットワークなのに、もう一台が見つからないのはなぜ?",- "acceptedAnswer": {- "@type": "Answer",- "text": "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。 Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは同じネットワークでの手順を。"- }- },- {- "@type": "Question",- "name": "Windows や Linux に対応していますか?iPhone は?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。 x64 と ARM64 の Linux デスクトップにも対応しています。X11、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)で動きます。コピーしたファイルはファイルマネージャーにそのまま貼り付けられます。 iPhone と iPad には対応していません。iOS ではアプリがバックグラウンドでクリップボードを監視できないため、コピーしてすぐ同期することができないからです。"- }- },- {- "@type": "Question",- "name": "初めて開くときにシステムに止められるのはなぜ?",- "acceptedAnswer": {- "@type": "Answer",- "text": "PasteFerry はまだ Apple の公証を受けておらず、Windows 版もコード署名していません。どちらも毎年費用のかかる証明書が必要です。 Mac では「システム設定 → プライバシーとセキュリティ」でページ下部の「このまま開く」をクリック、Windows では「Windows によって PC が保護されました」で「詳細情報」から「実行」を押してください。どちらも一度だけで済みます。"- }- },- {- "@type": "Question",- "name": "大きなファイルはどうなりますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "初期設定では 50 MB までのものはコピーした時点でもう一台に送られ、そのまま貼り付けられます。それより大きいファイルは記録だけを同期し、必要なときに履歴から「このデバイスに取り込む」で転送します。上限は「設定」で変えられます。"- }- },- {- "@type": "Question",- "name": "無料ですか?会社で使えますか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "無料です。PasteFerry は GNU AGPL-3.0 のオープンソースで、個人も会社も無料で使い、改変できます。配布する場合や、改変したものをネットワーク越しに提供する場合は、同じライセンスでソースコードを公開する必要があります。"- }- },- {- "@type": "Question",- "name": "公式中継は無制限ですか?",- "acceptedAnswer": {- "@type": "Answer",- "text": "現在の標準中継上限は端末の上限グループごとに送受信合計 100 MB/日で、北京時間午前 0 時にリセットします。再インストールで新たな残量が得られる保証はありません。使用量画面に実際の上限、残量、更新時刻を表示します。上限に達しても直接接続は利用できます。上限と提供状況は変更される場合があるため、アプリでご確認ください。"- }- }- ]}]}@@ -197,12 +104,23 @@<div class="wrap"><a class="brand" href="./" aria-label="PasteFerry ホーム"><img src="../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="start/">はじめかた</a>- <a class="wide" href="#how">しくみ</a>- <a class="wide" href="#faq">よくある質問</a>- <a class="mid" href="start/#server">接続方法</a>+ <a href="features/">機能</a>+ <a class="mid" href="start/">はじめかた</a>+ <a class="wide" href="start/#server">接続方法</a><a href="download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="start/">はじめかた</a></li>+ <li class="narrow"><a href="start/#server">接続方法</a></li>+ <li><a href="how/">しくみ</a></li>+ <li><a href="security/">セキュリティ</a></li>+ <li><a href="faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>@@ -220,7 +138,7 @@<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="official/">2.1 新機能:サーバー不要で別ネットワーク間を同期 →</a>+ <a class="release-note" href="features/#quick-paste">2.4 の新機能:<span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> でクイックペースト →</a><h1 class="display">こっちでコピーして、<br>あっちで貼り付け。</h1><p class="lede">Mac・Windows・Linux でテキスト、画像、ファイル、フォルダを同期。同じアカウントは不要。公式サービスをオンにすれば、サーバーを構築せずに別ネットワーク間でも使えます。直接接続を優先し、常にエンドツーエンド暗号化。</p><div class="cta">@@ -256,6 +174,82 @@</div></section>+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 の新機能</span></p>+ <h2 id="qp-title"><span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> を押せば、<br>コピーした内容がすぐそこに。</h2>+ <p class="intro">どのアプリでも押すだけで、画面の中央に履歴が出ます。数字かリターンを押せば、選んだ内容がそのままペーストされます。よく使うものはお気に入りに。</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="../assets/screenshots/ja/card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="クイックペーストウィンドウ:上に検索欄と「すべて・テキスト・リンク・画像・ファイル・お気に入り」のタブ、番号付きの履歴、下にキーの説明">+ </figure>+ <p class="more"><a href="features/#quick-paste">クイックペーストについて →</a></p>+ </div>+ </section>++ <section class="section" id="features" aria-labelledby="grid-title">+ <div class="wrap">+ <h2 id="grid-title">クリップボードの同期だけじゃない。</h2>+ <ul class="tiles">+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/></svg>+ <h3>クイックペースト <span class="new">新機能</span></h3>+ <p><span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> で履歴を呼び出し、選ぶだけでペースト。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/></svg>+ <h3>お気に入り <span class="new">新機能</span></h3>+ <p>よく使う内容を別に保存。期限切れになりません。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>+ <h3>ファイルとフォルダ</h3>+ <p>50 MB まではコピーした時点で転送済み。大きいものは必要なときに。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>+ <h3>履歴</h3>+ <p>すべてのデバイスでコピーした内容をここに。検索も種類別の表示も。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>+ <h3>ネットワークをまたいで</h3>+ <p>公式サービスをオンにすれば、自宅と職場の間でも同期。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/></svg>+ <h3>エンドツーエンド暗号化</h3>+ <p>まず直接接続。サーバーはコピーした内容を見られません。</p>+ </li>+ </ul>+ <p class="more"><a href="features/">すべての機能を見る →</a></p>+ </div>+ </section>++ <section class="section" id="why" aria-labelledby="why-title">+ <div class="wrap">+ <h2 id="why-title">いまある方法では足りない理由</h2>+ <p class="intro">ユニバーサルクリップボードは同じ Apple ID で、近くにいる必要があります。AirDrop は毎回受け取り操作が要ります。自分宛てにメッセージで送ると手動でダウンロードすることになり、ファイルは他社のサーバーに残ります。Mac と Windows の組み合わせでは、標準の方法はどれも使えません。</p>+ <div class="block table-scroll">+ <table class="compare">+ <caption class="skip">PasteFerry とほかの方法の比較</caption>+ <thead><tr><td></td><th scope="col" class="ours">PasteFerry</th><th scope="col">ユニバーサル<br>クリップボード</th><th scope="col">AirDrop</th><th scope="col">チャットアプリ</th></tr></thead>+ <tbody>+ <tr><th scope="row">別々の Apple ID のあいだ</th><td class="yes ours">できる</td><td class="no">できない</td><td class="partial">受け取り操作が必要</td><td class="yes">できる</td></tr>+ <tr><th scope="row">Mac と Windows のあいだ</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="yes">できる</td></tr>+ <tr><th scope="row">別のネットワーク(自宅と会社)</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="yes">できる</td></tr>+ <tr><th scope="row">コピーしてすぐ貼り付け、受け取り操作なし</th><td class="yes ours">できる</td><td class="yes">できる</td><td class="no">できない</td><td class="no">できない</td></tr>+ <tr><th scope="row">ファイルとフォルダまるごと</th><td class="yes ours">できる</td><td class="partial">不安定</td><td class="yes">できる</td><td class="partial">先に圧縮</td></tr>+ <tr><th scope="row">前にコピーしたものを探す</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="partial">履歴をさかのぼる</td></tr>+ <tr><th scope="row">内容を復号できるのは自分の端末のみ</th><td class="yes ours">可能</td><td class="yes">可能</td><td class="yes">可能</td><td class="some">アプリによる</td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+<section class="section" id="deploy" aria-labelledby="deploy-title"><div class="wrap"><h2 id="deploy-title">2 台をどうつなぐか</h2>@@ -294,313 +288,6 @@</div></section>- <section class="section" aria-labelledby="history-title">- <div class="wrap">- <h2 id="history-title">どのデバイスでコピーしたものも、ここに</h2>- <p class="intro">履歴には直近 3 日分が残り、いつでもクリップボードに戻せます。画像はクリックでプレビュー。50 MB までのファイルはコピーした時点で届いていて、それより大きいものは必要なときにワンクリックで取り込めます。前にコピーしたものは、テキストやファイル名で検索できます。</p>- <figure class="shot">- <img src="../assets/screenshots/ja/history-dark.png" width="2112" height="1472" alt="PasteFerry の履歴画面:MacBook Air と Mac mini から届いたファイル、画像、テキスト。大きなファイルには「このデバイスに取り込む」ボタン">- </figure>- </div>- </section>-- <section class="section" aria-labelledby="flow-title">- <div class="wrap">- <h2 id="flow-title">コピーしたあと、何が起きるか</h2>- <p class="intro">テキストも画像も、ファイルもフォルダも、同じ道を通ります。</p>- <ol class="flow">- <li><h3>気づく</h3><p>Mac ではバックグラウンドサービスが短い間隔でクリップボードの変更カウントを確認します。カウントと種類を見るだけなので許可は不要で、確認ダイアログも出ません。Windows ではコピーした瞬間にシステムが知らせます。</p></li>- <li><h3>送る</h3><p>テキストはメッセージと一緒に送ります。50 MB までの画像とファイルはその場でストリームとして送り、それより大きいファイルは記録だけを送って、必要になったときに転送します。</p></li>- <li><h3>貼り付ける</h3><p>受け取った側はまず内容をローカルに保存してから、クリップボードに入れます。⌘V や Ctrl+V で貼り付けられるのは、手元にある本物のファイルです。</p></li>- </ol>- </div>- </section>-- <section class="section" aria-labelledby="why-title">- <div class="wrap">- <h2 id="why-title">いまある方法では足りない理由</h2>- <p class="intro">ユニバーサルクリップボードは同じ Apple ID で、近くにいる必要があります。AirDrop は毎回受け取り操作が要ります。自分宛てにメッセージで送ると手動でダウンロードすることになり、ファイルは他社のサーバーに残ります。Mac と Windows の組み合わせでは、標準の方法はどれも使えません。</p>- <div class="block table-scroll">- <table class="compare">- <caption class="skip">PasteFerry とほかの方法の比較</caption>- <thead><tr><td></td><th scope="col" class="ours">PasteFerry</th><th scope="col">ユニバーサル<br>クリップボード</th><th scope="col">AirDrop</th><th scope="col">チャットアプリ</th></tr></thead>- <tbody>- <tr><th scope="row">別々の Apple ID のあいだ</th><td class="yes ours">できる</td><td class="no">できない</td><td class="partial">受け取り操作が必要</td><td class="yes">できる</td></tr>- <tr><th scope="row">Mac と Windows のあいだ</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="yes">できる</td></tr>- <tr><th scope="row">別のネットワーク(自宅と会社)</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="yes">できる</td></tr>- <tr><th scope="row">コピーしてすぐ貼り付け、受け取り操作なし</th><td class="yes ours">できる</td><td class="yes">できる</td><td class="no">できない</td><td class="no">できない</td></tr>- <tr><th scope="row">ファイルとフォルダまるごと</th><td class="yes ours">できる</td><td class="partial">不安定</td><td class="yes">できる</td><td class="partial">先に圧縮</td></tr>- <tr><th scope="row">前にコピーしたものを探す</th><td class="yes ours">できる</td><td class="no">できない</td><td class="no">できない</td><td class="partial">履歴をさかのぼる</td></tr>- <tr><th scope="row">内容を復号できるのは自分の端末のみ</th><td class="yes ours">可能</td><td class="yes">可能</td><td class="yes">可能</td><td class="some">アプリによる</td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="how" aria-labelledby="how-title">- <div class="wrap">- <h2 id="how-title">しくみ</h2>- <p class="intro">同じネットワークではサーバーなしで端末を検出します。別ネットワークでは公式サービスまたは独自サーバーが接続情報を交換。直接接続を優先し、失敗時に暗号化中継を使います。図は共通のシグナリングと中継構成です。</p>- <figure class="diagram">- <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">- <title id="diagram-title">PasteFerry の接続のしかた</title>- <desc id="diagram-desc">コンピューター A と B(Mac または Windows)は WebRTC で直接つながります。どちらもシグナリングのためにシグナリング・中継サービスへ接続し、直接接続に失敗したときはサーバーの TURN でデータを中継します。</desc>- <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>- <text class="d-title" x="480" y="64" text-anchor="middle">シグナリング・中継サービス</text>- <text class="d-sub" x="480" y="92" text-anchor="middle">シグナリング、STUN、TURN 中継</text>- <path class="d-sig" d="M140 210V58H360"/>- <path class="d-sig" d="M820 210V58H600"/>- <path class="d-relay" d="M196 210V100H360"/>- <path class="d-relay" d="M764 210V100H600"/>- <text class="d-note" x="210" y="50">シグナリング:接続情報の交換</text>- <text class="d-note" x="210" y="128">中継:直接つながらないときだけ</text>- <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>- <text class="d-sub" x="160" y="290" text-anchor="middle">ここでコピー</text>- <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="800" y="262" text-anchor="middle">Mac または Windows</text>- <text class="d-sub" x="800" y="290" text-anchor="middle">ここで貼り付け</text>- <path class="d-direct" d="M280 270H680"/>- <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直接接続、DTLS 暗号化</text>- <text class="d-note" x="480" y="298" text-anchor="middle">データは 2 台のあいだだけを流れる</text>- <g class="d-legend" transform="translate(40 372)">- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">データ(直接)</text>- <path class="d-relay" d="M210 0H238"/><text x="248" y="5">データ(中継、予備)</text>- <path class="d-sig" d="M470 0H498"/><text x="508" y="5">シグナリング</text>- </g>- </svg>- <ul class="points diagram-text">- <li><strong>WebRTC 直接接続、DTLS 暗号化</strong> データは 2 台のあいだだけを流れる</li>- <li><strong>シグナリング・中継サービス</strong> シグナリング、STUN、TURN 中継</li>- <li>中継:直接つながらないときだけ</li>- </ul>- </figure>- </div>- </section>-- <section class="section" id="multi-uplink" aria-labelledby="multi-title">- <div class="wrap">- <h2 id="multi-title">会社のネットワークでも直接つながる</h2>- <p class="intro">2 つの回線を持つ会社や、キャリアの NAT アドレスプールのようなネットワークには出口が複数あり、宛先ごとに出口が変わります。一度調べただけでは出口のひとつしか分からず、中継頼みになります。PasteFerry はすべての出口を調べ、そのアドレスをすべて相手に伝えます。</p>- <div class="cols">- <div>- <h3>やっていること</h3>- <ul class="points">- <li><strong>ポートはひとつ。</strong>すべての接続をひとつのローカル UDP ポートで送受信するので、別々のサーバーから得たアドレスがかみ合います。</li>- <li><strong>出口をすべて調べる。</strong>そのポートから IP の散らばった 7 台のサーバーに同時に問い合わせ、出口の数だけアドレスを得ます。DNS 汚染されたアドレスは先に除外します。</li>- <li><strong>すべて相手に伝える。</strong>相手はひとつずつ試し、実際の出口と合うものがつながります。</li>- <li><strong>見た出口を覚えておく。</strong>ポートを書き換えない出口を取りこぼしたときは、「出口の IP +ローカルポート」で補います。</li>- <li><strong>どちらが先に送るかを決める。</strong>相手のパケットが先に届くとポートをふさいでしまうルーターがあります。片方が先にアドレスを公開し、もう片方はそこへ送ってから自分のアドレスを公開します。再試行では順番を入れ替えます。</li>- <li><strong>待機中に直接接続を再試行。</strong>直接接続に失敗して中継が利用可能なら、中継で同期を続けます。待機中に直接接続を再試行し、成功したら中継を解放します。</li>- </ul>- </div>- <div>- <h3>実際のネットワーク構成で検証</h3>- <p class="small">NAT 穴あけ実験室では、Linux のネットワーク名前空間と iptables でこれらの構成を組み、PasteFerry の本物の接続コードをそれぞれで動かします。コミットのたびに自動で実行されます。</p>- <div class="table-scroll">- <table>- <thead><tr><th scope="col">構成</th><th scope="col">結果</th></tr></thead>- <tbody>- <tr><td>出口ひとつ ↔ 家庭用ルーター</td><td>直接</td></tr>- <tr><td>出口ふたつ、旧バージョン(対照)</td><td>中継</td></tr>- <tr><td>出口ふたつ ↔ 家庭用ルーター</td><td>直接</td></tr>- <tr><td>出口よっつ ↔ 家庭用ルーター</td><td>直接</td></tr>- <tr><td>出口ふたつ、2 本目を取りこぼし、履歴なし</td><td>中継</td></tr>- <tr><td>出口ふたつ、2 本目を取りこぼし、履歴あり</td><td>直接</td></tr>- <tr><td>出口ふたつ ↔ 出口ふたつ</td><td>直接</td></tr>- <tr><td>出口ふたつ ↔ ポートをランダムに割り当てる NAT</td><td>中継</td></tr>- <tr><td>最初はつながらず、あとでネットワークが回復</td><td>中継のあと直接</td></tr>- <tr><td>会社のルーターが外からのパケットでポートをふさぐ</td><td>直接</td></tr>- <tr><td>家庭用ルーターが外からのパケットでポートをふさぐ</td><td>中継のあと、1 回の再試行で直接</td></tr>- <tr><td>サーバーなし、同じサブネット、mDNS で発見</td><td>直接</td></tr>- <tr><td>サーバーなし、別のサブネット、片方が相手のアドレスを覚えている</td><td>直接</td></tr>- <tr><td>サーバーなし、両方が受信をブロック、両方がアドレスを覚えている</td><td>直接</td></tr>- <tr><td>サーバーなし、両方が受信をブロック、片方だけが覚えている</td><td>つながらない(既知の制限)</td></tr>- <tr><td>サーバーなし、サブネット同士が遮断されている</td><td>つながらない</td></tr>- </tbody>- </table>- </div>- <p class="small">実測:出口が 4 つある会社の Mac と自宅の Mac は、以前は中継しかできず、サーバーの帯域で 0.6 MB/s に抑えられていました。いまは直接つながり、サーバーに接続してから約 3 秒で確立します。</p>- <p class="small">測定の過程、設計の判断、ハマった点は<a href="../design/nat-traversal.html">技術資料</a>(中国語)にまとめています。</p>- </div>- </div>- </div>- </section>-- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">サーバーにはコピーした内容が見えない</h2>- <div class="cols">- <ul class="points">- <li><strong>サーバーはアカウントも内容も保存しない。</strong>デバイスの身元は Ed25519 の鍵で、デバイス ID は公開鍵から計算されます。サーバーはユーザー表なしで身元を確かめられます。</li>- <li><strong>ペアリングでは指紋をあなたが照合する。</strong>両方の画面に同じ 2 行、つまりお互いの公開鍵の指紋が表示されます。サーバーは転送中の公開鍵をすり替えられますが、すり替えれば 2 つの画面が一致しなくなります。この照合が中間者攻撃を防ぐ関門です。</li>- <li><strong>その後のメッセージはすべて署名付き。</strong>サーバーがあなたのデバイスになりすますことはできません。直接接続の証明書もハンドシェイク後にもう一度照合し、食い違えばすぐ切断します。</li>- <li><strong>中継も暗号文を転送するだけ。</strong>TURN が運ぶのは暗号化済みのパケットです。中継用の認証情報はデバイスごとに発行され、12 時間で失効します。</li>- <li><strong>ローカルネットワークでも同じ。</strong>デバイスが LAN に流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。デバイス名を流すのは「近くを検索」を開いている間だけです。ペアリングでは同じく指紋を照合し、その後のメッセージも署名付きです。</li>- </ul>- <figure class="figure-card">- <img src="../assets/screenshots/ja/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">- <div class="wrap">- <h2 id="fallback-title">うまくいかないときに起きること</h2>- <p class="intro">ネットワークの事情は人それぞれです。ここに挙げたケースはどれも想定済みで、テストがあります。</p>- <dl class="fallbacks">- <div><dt>同じネットワークなのに相手が見つからない</dt><dd>サブネットが違う、ゲストネットワーク、クライアント分離(AP アイソレーション)が有効な Wi‑Fi では、LAN 内の検出が届きません。ペアリング時に相手のコードの下に表示されたアドレスを入力してください。アドレスはその後も記憶され、両方のアドレスが変わったときはデバイス一覧からもう一度入力します。</dd></div>- <div><dt>システムがローカルネットワークを止めている</dt><dd>macOS 15 以降、バックグラウンドサービスが LAN 上のデバイスに接続するにはあなたの許可が要ります。Windows は初回起動時にファイアウォールについて聞いてきます。許可されていないときはアプリが知らせ、設定へ直接飛べるボタンを出します。</dd></div>- <div><dt>2 台が直接つながらない</dt><dd>公式モードでは直接接続に失敗した後、残量の範囲内で中継を申請します。独自サーバーではその TURN 中継を使います。どちらも内容はエンドツーエンド暗号化されます。</dd></div>- <div><dt>公開 STUN サーバーにつながらない</dt><dd>中国本土などでは公開 STUN が不安定です。サーバーは STUN を内蔵していて、クライアントはそちらを優先します。</dd></div>- <div><dt>直接接続へ切り替える</dt><dd>直接接続に失敗して中継が利用可能なら、中継で同期を続けます。待機中に直接接続を再試行し、成功したら中継を解放します。</dd></div>- <div><dt>相手がスリープ、切断、再起動した</dt><dd>黙って切れた接続にも気づき、すぐに閉じて再接続します。そのあいだにコピーしたものは記録しておき、つながったら相手の履歴に追加します。相手のいまのクリップボードは上書きしません。</dd></div>- <div><dt>サーバーとの接続が切れた</dt><dd>自動で再接続します。間隔は 1 秒から倍々で最大 30 秒、ランダムな揺らぎ付きで、たくさんのデバイスが一斉に再接続しないようにしています。同じネットワークのデバイスは影響を受けず、そのまま同期します。</dd></div>- <div><dt>ファイルが大きすぎる</dt><dd>上限を超えるものは記録だけを同期し、必要なときに取り込みます。そのとき元のファイルが消えていれば、あいまいな失敗ではなく、はっきりそう伝えます。</dd></div>- <div><dt>プレーンテキストしか受け付けない場所に貼り付ける</dt><dd>Web からコピーした書式付きテキストは HTML とプレーンテキストの両方で書き込むので、どこに貼り付けてもタグが混ざりません。</dd></div>- <div><dt>Windows では使えないファイル名</dt><dd>Mac では使えるコロンや疑問符などは、対応する全角文字に置き換えて受け取るので、名前はそのまま読めます。大文字と小文字だけが違う 2 つのファイルが上書きし合うこともありません。</dd></div>- <div><dt>パスワードをコピーした</dt><dd>Windows ではパスワードマネージャーがコピーした内容に「記録しない」印が付きます。PasteFerry はそれを見て飛ばします。同期も履歴への保存もしません。</dd></div>- <div><dt>クリップボードの読み取りをまだ許可していない</dt><dd>内容は読みに行きません。読みに行くと、バックグラウンドプロセスが見えないダイアログで止まってしまうからです。アプリが許可を促し、設定へ直接飛べるボタンを出します。</dd></div>- <div><dt>バックグラウンドサービスが落ちた</dt><dd>Mac ではシステムの launchd が、Windows では PasteFerry 自身の監視プロセスが再起動します。10 秒に 1 回までに抑え、暴走はしません。</dd></div>- <div><dt>アプリを更新した、または移動した</dt><dd>アプリを開いたときにログイン項目を正しい場所に向け直し、バックグラウンドサービスを新しいバージョンで再起動します。</dd></div>- </dl>- </div>- </section>-- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">インストール</h2>- <p class="intro">それぞれのコンピューターにアプリを入れます。同じネットワークならそのままペアリングでき、ネットワークをまたぐときは 2 台がお互いを見つける方法をひとつ選びます。はじめての方は<a href="start/">はじめかた</a>をどうぞ。</p>- <div class="install">- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>- <ol>- <li>DMG をダウンロードして開き、PasteFerry を「アプリケーション」にドラッグします。<span class="aside">Apple シリコン版と Intel 版があります。自分の Mac がどちらかの確かめ方は、ダウンロードページにあります。</span></li>- <li>「アプリケーション」から開きます。<span class="aside">初回は「開発元を検証できません」と表示されます。PasteFerry はまだ Apple の公証を受けていないためです。「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。必要なのは一度だけです。</span></li>- <li>「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。</li>- <li>別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。</li>- </ol>- <a class="button" href="download/#macos"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>- <ol>- <li>PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">PasteFerry はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。インストーラーを使いたくない場合は<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">ポータブル版</a>もあります。</span></li>- <li>PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。</li>- <li>別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。</li>- </ol>- <a class="button" href="download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3>- <ol>- <li>Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./PasteFerry-linux-amd64.deb</code> を実行します。ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./PasteFerry/install.sh</code> を実行します。</li>- <li>アプリケーションメニューから PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。</li>- <li>別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。</li>- </ol>- <a class="button" href="download/#linux"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Linux 版をダウンロード</a>- </div>- </div>- <div class="install-more">- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>接続方法</h3>- <p class="small">同じネットワークならインストールしてペアリング。別ネットワークなら公式サービスをオンにするだけで、サーバーの準備は不要です。独自サーバーと Tailscale も選べます。</p>- <ul class="opts">- <li><a href="official/">公式サービス</a><span>別ネットワーク間、構築不要</span></li>- <li><a href="lan/">同じネットワーク</a><span>準備は何も要らない</span></li>- <li><a href="cloud/">独自の公開サーバー</a><span>容量と運用を自分で管理</span></li>- <li><a href="tailscale/">Tailscale</a><span>ネットワークをまたぐ、サーバーなし</span></li>- </ul>- <a class="button quiet" href="start/#server">接続方法を比較</a>- </div>- <p class="pairing">一方でコードを表示し、もう一方で入力。両画面の指紋を照合して確認します。既存のペアリングはそのまま使えます。 公式サービスでは相手の IP は不要です。LAN の別サブネットや Tailscale の場合のみ相手のアドレスを入力します。</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">- <div class="wrap">- <h2 id="specs-title">仕様</h2>- <div class="table-scroll">- <table class="specs">- <tbody>- <tr><th scope="row">バージョン</th><td>2.3.0(<time datetime="2026-10-19">2026 年 10 月 19 日</time>公開)</td></tr>- <tr><th scope="row">Mac アプリ</th><td>macOS 13 Ventura 以降。Apple シリコン版と Intel 版に分かれ、ダウンロードはそれぞれ約 25 MB で Rosetta 不要。両方で動くユニバーサル版は約 47 MB</td></tr>- <tr><th scope="row">Windows アプリ</th><td>Windows 10 と Windows 11、x64。ユーザーごとのインストールで管理者権限不要。ダウンロードは約 23 MB</td></tr>- <tr><th scope="row">Linux アプリ</th><td>x64 と ARM64。.deb(Debian、Ubuntu など)または tar.gz(ほかのディストリビューション)、約 22 MB。X11 のデスクトップ、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)が必要。GTK 3</td></tr>- <tr><th scope="row">サーバー</th><td>構築が必要なのは独自運用の場合のみ。公式サービスなら自分のサーバーは不要です。独自運用は Linux x86_64/ARM64、macOS、Windows 10/11 x64 に対応。</td></tr>- <tr><th scope="row">表示言語</th><td>日本語、英語、簡体字中国語、繁体字中国語(台湾・香港)。初期設定はシステムに合わせ、「設定」で切り替え可能</td></tr>- <tr><th scope="row">同期する内容</th><td>プレーンテキスト、書式付きテキスト、画像とスクリーンショット、ファイル、フォルダ。種類ごとにオフにできる</td></tr>- <tr><th scope="row">転送</th><td>WebRTC データチャネル。直接接続を優先し、つながらなければ TURN で中継。同じネットワークでは mDNS で発見し、UDP 8788 で接続情報を交換。複数の出口があるネットワークでは出口ごとに調査。ファイルは tar + zstd でストリーム転送</td></tr>- <tr><th scope="row">暗号化と身元</th><td>DTLS によるエンドツーエンド暗号化。デバイスの身元は Ed25519 の鍵。シグナリングのメッセージはすべて署名付き</td></tr>- <tr><th scope="row">ペアリング</th><td>5 分間有効な 6 桁のコード。0/O や 1/I のような紛らわしい文字は使わない。指紋は人が照合</td></tr>- <tr><th scope="row">自動同期の上限</th><td>初期値 50 MB、1 MB〜1 GB で調整可能</td></tr>- <tr><th scope="row">履歴の保存期間</th><td>初期値 3 日、1 時間〜30 日で調整可能。期限が来たら自動で削除</td></tr>- <tr><th scope="row">実測の速度</th><td>LAN の直接接続で 20 MB のファイルを約 330 ミリ秒で転送、チェックサム一致</td></tr>- <tr><th scope="row">技術スタック</th><td>バックグラウンドサービスとサーバーは Go(Windows では Go から Win32 を直接呼び出し、Linux では Go で X11 プロトコルを直接扱う)、アプリは Flutter(3 つの OS で同じコード)、メッセージ定義は Protocol Buffers</td></tr>- <tr><th scope="row">ライセンス</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="faq" aria-labelledby="faq-title">- <div class="wrap">- <h2 id="faq-title">よくある質問</h2>- <div class="faq">- <details>- <summary>UU Remote の使用中に .uuremote_ ファイルが増え続けるのはなぜですか?</summary>- <div class="answer"><p>UU Remote は一時的なプレースホルダーファイルをシステムのクリップボードに書き込みます。旧版の PasteFerry はそれを通常のファイルとして記録・転送していました。1.3.2 では確認済みの命名パターンを送受信時に除外し、起動時にプレースホルダーだけの履歴を削除します。通常の空ファイル、隠しファイル、大容量ファイルは対象外です。50 MB は自動転送のしきい値であり、UU の UDP P2P 設定とは関係ありません。両端を更新してください。他のクリップボード同期ツールによる通常コンテンツの重複は起こり得ます。</p></div>- </details>- <details>- <summary>macOS のユニバーサルクリップボードとの違いは?</summary>- <div class="answer"><p>Mac・Windows・Linux でテキスト、画像、ファイル、フォルダを同期。同じアカウントは不要。公式サービスをオンにすれば、サーバーを構築せずに別ネットワーク間でも使えます。直接接続を優先し、常にエンドツーエンド暗号化。</p><p>2 台の Mac が同じ Apple ID でいつも並んでいて、主にテキストをコピーするだけなら、標準機能で十分です。</p></div>- </details>- <details>- <summary>サーバーにコピーした内容は見えますか?</summary>- <div class="answer"><p>コピー内容は復号できません。直接通信は端末間で行い、中継はエンドツーエンド暗号化されたパケットを転送します。公式サービスは必要な端末・使用量統計を保持します。公開ソースだけで非公開の本番保存動作まで証明できるわけではありません。</p></div>- </details>- <details>- <summary>出口が複数ある会社のネットワークでも直接つながりますか?</summary>- <div class="answer"><p>つながります。こうしたネットワークは宛先ごとに出口を選びます。PasteFerry はひとつのポートから複数のサーバーに問い合わせて出口ごとのアドレスを集め、すべて相手に送り、相手がひとつずつ試します。テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。</p></div>- </details>- <details>- <summary>サーバーは自分で用意する必要がありますか?</summary>- <div class="answer"><p>不要です。別ネットワークなら両方で<a href="official/">公式サービス</a>を有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、<a href="cloud/">独自サーバー</a>、<a href="tailscale/">Tailscale</a> も使えます。</p></div>- </details>- <details>- <summary>自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?</summary>- <div class="answer"><p>不要です。別ネットワークなら両方で<a href="official/">公式サービス</a>を有効にします。クラウド契約やアドレス入力は不要。初期状態はオフで、現在の中継上限は 100 MB/日、直接通信は消費しません。LAN、<a href="cloud/">独自サーバー</a>、<a href="tailscale/">Tailscale</a> も使えます。</p></div>- </details>- <details>- <summary>同じネットワークなのに、もう一台が見つからないのはなぜ?</summary>- <div class="answer"><p>まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。</p><p>Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは<a href="lan/#faq">同じネットワークでの手順</a>を。</p></div>- </details>- <details>- <summary>Windows や Linux に対応していますか?iPhone は?</summary>- <div class="answer"><p>Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。</p><p>x64 と ARM64 の Linux デスクトップにも対応しています。X11、または XWayland 付きの Wayland デスクトップ(GNOME、KDE などは標準で搭載)で動きます。コピーしたファイルはファイルマネージャーにそのまま貼り付けられます。</p><p>iPhone と iPad には対応していません。iOS ではアプリがバックグラウンドでクリップボードを監視できないため、コピーしてすぐ同期することができないからです。</p></div>- </details>- <details>- <summary>初めて開くときにシステムに止められるのはなぜ?</summary>- <div class="answer"><p>PasteFerry はまだ Apple の公証を受けておらず、Windows 版もコード署名していません。どちらも毎年費用のかかる証明書が必要です。</p><p>Mac では「システム設定 → プライバシーとセキュリティ」でページ下部の「このまま開く」をクリック、Windows では「Windows によって PC が保護されました」で「詳細情報」から「実行」を押してください。どちらも一度だけで済みます。</p></div>- </details>- <details>- <summary>大きなファイルはどうなりますか?</summary>- <div class="answer"><p>初期設定では 50 MB までのものはコピーした時点でもう一台に送られ、そのまま貼り付けられます。それより大きいファイルは記録だけを同期し、必要なときに履歴から「このデバイスに取り込む」で転送します。上限は「設定」で変えられます。</p></div>- </details>- <details>- <summary>無料ですか?会社で使えますか?</summary>- <div class="answer"><p>無料です。PasteFerry は GNU AGPL-3.0 のオープンソースで、個人も会社も無料で使い、改変できます。配布する場合や、改変したものをネットワーク越しに提供する場合は、同じライセンスでソースコードを公開する必要があります。</p></div>- </details>- <details>- <summary>公式中継は無制限ですか?</summary>- <div class="answer"><p>現在の標準中継上限は端末の上限グループごとに送受信合計 100 MB/日で、北京時間午前 0 時にリセットします。再インストールで新たな残量が得られる保証はありません。使用量画面に実際の上限、残量、更新時刻を表示します。上限に達しても直接接続は利用できます。上限と提供状況は変更される場合があるため、アプリでご確認ください。</p></div>- </details>- </div>- </div>- </section>-<section class="closing" aria-labelledby="closing-title"><div class="wrap"><h2 class="display" id="closing-title">2 台のコンピューター、<br>ひとつのクリップボード。</h2>diff --git a/docs/ja/lan/index.html b/docs/ja/lan/index.htmlindex 392f1e5..684a7e1 100644--- a/docs/ja/lan/index.html+++ b/docs/ja/lan/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server" aria-current="true">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server" aria-current="true">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/official/index.html b/docs/ja/official/index.htmlindex 7a3c373..b658b99 100644--- a/docs/ja/official/index.html+++ b/docs/ja/official/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/privacy/index.html b/docs/ja/privacy/index.htmlindex e7801a2..1bee383 100644--- a/docs/ja/privacy/index.html+++ b/docs/ja/privacy/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/security/index.html b/docs/ja/security/index.htmlnew file mode 100644index 0000000..24f998a--- /dev/null+++ b/docs/ja/security/index.html@@ -0,0 +1,128 @@+<!doctype html>+<html lang="ja">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>セキュリティとプライバシー:エンドツーエンド暗号化とペアリングの照合 — PasteFerry</title>+ <meta name="description" content="デバイスは鍵で識別され、ペアリング時にあなたが指紋を照合します。以降のメッセージはすべて署名付きで、内容を復号できるのはあなたのデバイスだけです。">+ <link rel="canonical" href="https://pasteferry.cc/ja/security/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="PasteFerry">+ <meta property="og:title" content="セキュリティとプライバシー:エンドツーエンド暗号化とペアリングの照合 — PasteFerry">+ <meta property="og:description" content="デバイスは鍵で識別され、ペアリング時にあなたが指紋を照合します。以降のメッセージはすべて署名付きで、内容を復号できるのはあなたのデバイスだけです。">+ <meta property="og:url" content="https://pasteferry.cc/ja/security/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-en.png">+ <meta property="og:locale" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">本文へ移動</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a>+ <nav aria-label="ページ内の移動">+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server">接続方法</a>+ <a href="../../ja/download/">ダウンロード</a>+ <details class="menu">+ <summary aria-label="その他のページ" class="current"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="./" aria-current="page">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../ja/">PasteFerry</a></p>+ <h1 class="display">サーバーにはコピーした内容が見えない</h1>+ <p class="lede">デバイスは鍵で識別され、ペアリング時にあなたが指紋を照合します。以降のメッセージはすべて署名付きで、内容を復号できるのはあなたのデバイスだけです。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="cols">+ <ul class="points">+ <li><strong>サーバーはアカウントも内容も保存しない。</strong>デバイスの身元は Ed25519 の鍵で、デバイス ID は公開鍵から計算されます。サーバーはユーザー表なしで身元を確かめられます。</li>+ <li><strong>ペアリングでは指紋をあなたが照合する。</strong>両方の画面に同じ 2 行、つまりお互いの公開鍵の指紋が表示されます。サーバーは転送中の公開鍵をすり替えられますが、すり替えれば 2 つの画面が一致しなくなります。この照合が中間者攻撃を防ぐ関門です。</li>+ <li><strong>その後のメッセージはすべて署名付き。</strong>サーバーがあなたのデバイスになりすますことはできません。直接接続の証明書もハンドシェイク後にもう一度照合し、食い違えばすぐ切断します。</li>+ <li><strong>中継も暗号文を転送するだけ。</strong>TURN が運ぶのは暗号化済みのパケットです。中継用の認証情報はデバイスごとに発行され、12 時間で失効します。</li>+ <li><strong>ローカルネットワークでも同じ。</strong>デバイスが LAN に流すのは毎日変わる匿名の識別子だけで、誰のコンピューターかはわかりません。デバイス名を流すのは「近くを検索」を開いている間だけです。ペアリングでは同じく指紋を照合し、その後のメッセージも署名付きです。</li>+ </ul>+ <figure class="figure-card">+ <img src="../../assets/screenshots/ja/card-verify-dark.png" width="1120" height="800" alt="ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている">+ </figure>+ </div>+ <p class="more"><a href="../../ja/privacy/">プライバシーポリシー →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>PasteFerry は GNU AGPL-3.0 のオープンソースです。</p>+ <nav aria-label="フッターのリンク">+ <a href="https://github.com/baiyuze/pasteferry/releases">すべてのリリース</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術資料(中国語)</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">ライセンス</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">問題を報告</a>+ <a href="../../ja/privacy/">プライバシーと必要なデータ</a>+ </nav>+ <nav aria-label="言語">+ <a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/ja/server/index.html b/docs/ja/server/index.htmlindex 752e96e..3ba1476 100644--- a/docs/ja/server/index.html+++ b/docs/ja/server/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server" aria-current="true">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server" aria-current="true">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/start/index.html b/docs/ja/start/index.htmlindex 4743f65..b21e0c0 100644--- a/docs/ja/start/index.html+++ b/docs/ja/start/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="./" aria-current="page">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="#server">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="./" aria-current="page">はじめかた</a>+ <a class="wide" href="#server">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="./" aria-current="page">はじめかた</a></li>+ <li class="narrow"><a href="#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/ja/tailscale/index.html b/docs/ja/tailscale/index.htmlindex fff8edc..ac49677 100644--- a/docs/ja/tailscale/index.html+++ b/docs/ja/tailscale/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">本文へ移動</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../ja/" aria-label="PasteFerry ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">PasteFerry</a><nav aria-label="ページ内の移動">- <a href="../../ja/start/">はじめかた</a>- <a class="wide" href="../../ja/#how">しくみ</a>- <a class="wide" href="../../ja/#faq">よくある質問</a>- <a class="mid" href="../../ja/start/#server" aria-current="true">接続方法</a>+ <a href="../../ja/features/">機能</a>+ <a class="mid" href="../../ja/start/">はじめかた</a>+ <a class="wide" href="../../ja/start/#server" aria-current="true">接続方法</a><a href="../../ja/download/">ダウンロード</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="その他のページ"><span>その他</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../ja/start/">はじめかた</a></li>+ <li class="narrow"><a href="../../ja/start/#server">接続方法</a></li>+ <li><a href="../../ja/how/">しくみ</a></li>+ <li><a href="../../ja/security/">セキュリティ</a></li>+ <li><a href="../../ja/faq/">よくある質問</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新履歴</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/lan/index.html b/docs/lan/index.htmlindex a4ba4ce..116ba2d 100644--- a/docs/lan/index.html+++ b/docs/lan/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server" aria-current="true">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server" aria-current="true">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/official/index.html b/docs/official/index.htmlindex 22c004c..cd74887 100644--- a/docs/official/index.html+++ b/docs/official/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/privacy/index.html b/docs/privacy/index.htmlindex ae2fe31..5cdcdee 100644--- a/docs/privacy/index.html+++ b/docs/privacy/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/security/index.html b/docs/security/index.htmlnew file mode 100644index 0000000..d35cd97--- /dev/null+++ b/docs/security/index.html@@ -0,0 +1,128 @@+<!doctype html>+<html lang="zh-CN">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>安全与隐私:端到端加密与配对核对 — 隔空贴</title>+ <meta name="description" content="设备身份是一把密钥,配对时由你核对指纹,之后的每条消息都带签名,内容只有你的设备能解密。">+ <link rel="canonical" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空贴">+ <meta property="og:title" content="安全与隐私:端到端加密与配对核对 — 隔空贴">+ <meta property="og:description" content="设备身份是一把密钥,配对时由你核对指纹,之后的每条消息都带签名,内容只有你的设备能解密。">+ <meta property="og:url" content="https://pasteferry.cc/security/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og.png">+ <meta property="og:locale" content="zh_CN">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳到正文</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a>+ <nav aria-label="页面导航">+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server">连接方式</a>+ <a href="../download/">下载</a>+ <details class="menu">+ <summary aria-label="更多页面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="./" aria-current="page">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a></li>+ <li><a href="../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../en/security/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href=".././">隔空贴</a></p>+ <h1 class="display">服务器看不到你复制了什么</h1>+ <p class="lede">设备身份是一把密钥,配对时由你核对指纹,之后的每条消息都带签名,内容只有你的设备能解密。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="cols">+ <ul class="points">+ <li><strong>服务器不存账号,也不存内容。</strong>设备身份是一把 Ed25519 密钥,设备 ID 由公钥算出,服务器不需要用户表就能验证身份。</li>+ <li><strong>配对时由你核对安全指纹。</strong>两块屏幕会显示同样的两行:双方各自公钥的指纹。服务器有能力替换转发中的公钥,但替换之后两块屏幕就对不上了,这一步就是防中间人的闸门。</li>+ <li><strong>之后的每条消息都带签名,</strong>服务器无法冒充你的设备。直连通道的证书在握手后还会再核对一次,不一致立即断开。</li>+ <li><strong>中转也只是转发密文。</strong>TURN 转发的是加密后的数据包,中转凭证按设备单独签发,12 小时后过期。</li>+ <li><strong>局域网里也一样。</strong>设备在局域网里广播的只是一个每天都变的匿名标识,看不出是谁的电脑,只有打开「搜索附近设备」时才带上设备名;配对同样要核对指纹,之后的消息同样带签名。</li>+ </ul>+ <figure class="figure-card">+ <img src="../assets/screenshots/card-verify-dark.png" width="1120" height="800" alt="配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致">+ </figure>+ </div>+ <p class="more"><a href="../privacy/">隐私说明 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空贴以 GNU AGPL-3.0 开源。</p>+ <nav aria-label="页脚链接">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技术方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">许可说明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">反馈问题</a>+ <a href="../privacy/">隐私与必要数据</a>+ </nav>+ <nav aria-label="语言">+ <a href="../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>+ <a href="../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../en/security/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/server/index.html b/docs/server/index.htmlindex 0d5e086..6d4f0ad 100644--- a/docs/server/index.html+++ b/docs/server/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server" aria-current="true">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server" aria-current="true">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/sitemap.xml b/docs/sitemap.xmlindex 32d3ce5..89c5093 100644--- a/docs/sitemap.xml+++ b/docs/sitemap.xml@@ -51,6 +51,51 @@<xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/"/><xhtml:link rel="alternate" hreflang="x-default" href="https://pasteferry.cc/"/></url>+ <url>+ <loc>https://pasteferry.cc/features/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-tw/features/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-hk/features/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/en/features/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/ja/features/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/"/>+ </url><url><loc>https://pasteferry.cc/start/</loc><lastmod>2026-10-19</lastmod>@@ -456,6 +501,141 @@<xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/privacy/"/><xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/privacy/"/></url>+ <url>+ <loc>https://pasteferry.cc/how/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-tw/how/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-hk/how/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/en/how/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/ja/how/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/security/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-tw/security/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-hk/security/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/en/security/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/ja/security/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/faq/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-tw/faq/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/zh-hk/faq/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/en/faq/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/"/>+ </url>+ <url>+ <loc>https://pasteferry.cc/ja/faq/</loc>+ <lastmod>2026-10-19</lastmod>+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/"/>+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/"/>+ <xhtml:link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/"/>+ <xhtml:link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/"/>+ </url><url><loc>https://pasteferry.cc/design/nat-traversal.html</loc><lastmod>2026-10-19</lastmod>diff --git a/docs/start/index.html b/docs/start/index.htmlindex 1c3b546..76ac942 100644--- a/docs/start/index.html+++ b/docs/start/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="./" aria-current="page">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="#server">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="./" aria-current="page">快速开始</a>+ <a class="wide" href="#server">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="./" aria-current="page">快速开始</a></li>+ <li class="narrow"><a href="#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/tailscale/index.html b/docs/tailscale/index.htmlindex 5aaee2b..7da9959 100644--- a/docs/tailscale/index.html+++ b/docs/tailscale/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到正文</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href=".././" aria-label="隔空贴首页"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空贴</a><nav aria-label="页面导航">- <a href="../start/">快速开始</a>- <a class="wide" href=".././#how">工作原理</a>- <a class="wide" href=".././#faq">常见问题</a>- <a class="mid" href="../start/#server" aria-current="true">连接方式</a>+ <a href="../features/">功能</a>+ <a class="mid" href="../start/">快速开始</a>+ <a class="wide" href="../start/#server" aria-current="true">连接方式</a><a href="../download/">下载</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多页面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../start/">快速开始</a></li>+ <li class="narrow"><a href="../start/#server">连接方式</a></li>+ <li><a href="../how/">工作原理</a></li>+ <li><a href="../security/">安全与隐私</a></li>+ <li><a href="../faq/">常见问题</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新记录</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/cloud/index.html b/docs/zh-hk/cloud/index.htmlindex e439418..42b0f70 100644--- a/docs/zh-hk/cloud/index.html+++ b/docs/zh-hk/cloud/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server" aria-current="true">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/download/index.html b/docs/zh-hk/download/index.htmlindex 2b235dd..4bc0064 100644--- a/docs/zh-hk/download/index.html+++ b/docs/zh-hk/download/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a><a href="./" aria-current="page">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/faq/index.html b/docs/zh-hk/faq/index.htmlnew file mode 100644index 0000000..1dd304a--- /dev/null+++ b/docs/zh-hk/faq/index.html@@ -0,0 +1,270 @@+<!doctype html>+<html lang="zh-HK">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>常見問題 — 隔空貼</title>+ <meta name="description" content="安裝、連接、同步、費用。找不到答案的話,歡迎回報。">+ <link rel="canonical" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="常見問題 — 隔空貼">+ <meta property="og:description" content="安裝、連接、同步、費用。找不到答案的話,歡迎回報。">+ <meta property="og:url" content="https://pasteferry.cc/zh-hk/faq/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_HK">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script type="application/ld+json">+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "開啟 UU 遠程時,為甚麼不斷出現 .uuremote_ 檔案?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "UU 遠程會在系統剪貼簿裏寫入臨時佔位檔案,舊版隔空貼把它們當成普通檔案反覆記錄和轉發。1.3.2 會在傳送和接收時過濾已確認的佔位命名,並在啟動時清理純佔位記錄。正常的空檔案、隱藏檔案和大檔案不受此規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都升級;其他軟件如果也同步剪貼簿,仍可能產生普通內容的重複記錄。"+ }+ },+ {+ "@type": "Question",+ "name": "和 macOS 內建的「通用剪貼簿」有甚麼分別?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一帳戶。現在啟用官方服務就能跨網絡同步,無需自行架設伺服器。優先直連,始終端到端加密。 如果你的兩部 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能已經足夠。"+ }+ },+ {+ "@type": "Question",+ "name": "伺服器會看到我複製的內容嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "伺服器無法解密複製內容:直連時內容不經過中轉伺服器;中轉時轉發端到端加密封包。官方服務保留必要裝置與用量統計,詳見私隱說明。原始碼可供審計,不代表能證明私有正式環境的儲存行為。"+ }+ },+ {+ "@type": "Question",+ "name": "公司網絡(雙線、多出口)能直連嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "能。這類網絡按目標地址選擇出口,隔空貼會在同一個端口上向多部伺服器探測,取得每個出口的地址後一併發給對方,由對方逐個嘗試。實測公司 4 個出口與家用寬頻之間可以直連。對方是端口隨機分配的 NAT 時仍會經中轉。"+ }+ },+ {+ "@type": "Question",+ "name": "一定要自己準備伺服器嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同網絡時,在兩部電腦上啟用官方服務即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、自建伺服器與 Tailscale 繼續可用。"+ }+ },+ {+ "@type": "Question",+ "name": "家裏沒有公網 IP,能在家和公司之間同步嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同網絡時,在兩部電腦上啟用官方服務即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、自建伺服器與 Tailscale 繼續可用。"+ }+ },+ {+ "@type": "Question",+ "name": "在同一個網絡裏,為甚麼找不到另一部電腦?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見同一網絡教學。"+ }+ },+ {+ "@type": "Question",+ "name": "支援 Windows 和 Linux 嗎?iPhone 呢?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真實檔案,可以直接貼進檔案總管、微信、Office。 也支援 x64 與 ARM64 的 Linux 桌面:X11,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含)。複製的檔案可以直接貼進檔案管理員。 暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監測剪貼簿,做不到複製後即時同步。"+ }+ },+ {+ "@type": "Question",+ "name": "為甚麼第一次開啟時系統會阻擋一下?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "隔空貼仍未經 Apple 公證,Windows 版也仍未有程式碼簽署,兩者都需要每年付費的證書。 在 Mac 上,到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」;在 Windows 上,在「Windows 已保護您的電腦」提示裏按「其他資訊」,再按「仍要執行」。兩者都只需要做一次。"+ }+ },+ {+ "@type": "Question",+ "name": "大檔案怎樣處理?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "預設 50 MB 以內的內容在你複製時就會推送到另一部電腦,那邊可以直接貼上;更大的檔案只同步一條記錄,需要時在複製記錄裏按「拉取到本機」再傳送。上限可以在設定裏調整。"+ }+ },+ {+ "@type": "Question",+ "name": "免費嗎?公司可以用嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "免費。隔空貼以 GNU AGPL-3.0 開源,個人和公司都可以免費使用和修改。分發它,或透過網絡提供修改過的版本時,需要以同樣的授權公開原始碼。"+ }+ },+ {+ "@type": "Question",+ "name": "官方中轉不限量嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "目前預設每機器額度組每日 100 MB 中轉流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。"+ }+ }+ ]+}+ </script>+</head>+<body>+ <a class="skip" href="#main">跳至主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="./" aria-current="page">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>+ <li><a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-hk/">隔空貼</a></p>+ <h1 class="display">常見問題</h1>+ <p class="lede">安裝、連接、同步、費用。找不到答案的話,歡迎回報。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="faq">+ <details>+ <summary>開啟 UU 遠程時,為甚麼不斷出現 .uuremote_ 檔案?</summary>+ <div class="answer"><p>UU 遠程會在系統剪貼簿裏寫入臨時佔位檔案,舊版隔空貼把它們當成普通檔案反覆記錄和轉發。1.3.2 會在傳送和接收時過濾已確認的佔位命名,並在啟動時清理純佔位記錄。正常的空檔案、隱藏檔案和大檔案不受此規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都升級;其他軟件如果也同步剪貼簿,仍可能產生普通內容的重複記錄。</p></div>+ </details>+ <details>+ <summary>和 macOS 內建的「通用剪貼簿」有甚麼分別?</summary>+ <div class="answer"><p>Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一帳戶。現在啟用官方服務就能跨網絡同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><p>如果你的兩部 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能已經足夠。</p></div>+ </details>+ <details>+ <summary>伺服器會看到我複製的內容嗎?</summary>+ <div class="answer"><p>伺服器無法解密複製內容:直連時內容不經過中轉伺服器;中轉時轉發端到端加密封包。官方服務保留必要裝置與用量統計,詳見私隱說明。原始碼可供審計,不代表能證明私有正式環境的儲存行為。</p></div>+ </details>+ <details>+ <summary>公司網絡(雙線、多出口)能直連嗎?</summary>+ <div class="answer"><p>能。這類網絡按目標地址選擇出口,隔空貼會在同一個端口上向多部伺服器探測,取得每個出口的地址後一併發給對方,由對方逐個嘗試。實測公司 4 個出口與家用寬頻之間可以直連。對方是端口隨機分配的 NAT 時仍會經中轉。</p></div>+ </details>+ <details>+ <summary>一定要自己準備伺服器嗎?</summary>+ <div class="answer"><p>不需要。不同網絡時,在兩部電腦上啟用<a href="../../zh-hk/official/">官方服務</a>即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、<a href="../../zh-hk/cloud/">自建伺服器</a>與 <a href="../../zh-hk/tailscale/">Tailscale</a> 繼續可用。</p></div>+ </details>+ <details>+ <summary>家裏沒有公網 IP,能在家和公司之間同步嗎?</summary>+ <div class="answer"><p>不需要。不同網絡時,在兩部電腦上啟用<a href="../../zh-hk/official/">官方服務</a>即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、<a href="../../zh-hk/cloud/">自建伺服器</a>與 <a href="../../zh-hk/tailscale/">Tailscale</a> 繼續可用。</p></div>+ </details>+ <details>+ <summary>在同一個網絡裏,為甚麼找不到另一部電腦?</summary>+ <div class="answer"><p>先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見<a href="../../zh-hk/lan/#faq">同一網絡教學</a>。</p></div>+ </details>+ <details>+ <summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>+ <div class="answer"><p>支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真實檔案,可以直接貼進檔案總管、微信、Office。</p><p>也支援 x64 與 ARM64 的 Linux 桌面:X11,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含)。複製的檔案可以直接貼進檔案管理員。</p><p>暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監測剪貼簿,做不到複製後即時同步。</p></div>+ </details>+ <details>+ <summary>為甚麼第一次開啟時系統會阻擋一下?</summary>+ <div class="answer"><p>隔空貼仍未經 Apple 公證,Windows 版也仍未有程式碼簽署,兩者都需要每年付費的證書。</p><p>在 Mac 上,到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」;在 Windows 上,在「Windows 已保護您的電腦」提示裏按「其他資訊」,再按「仍要執行」。兩者都只需要做一次。</p></div>+ </details>+ <details>+ <summary>大檔案怎樣處理?</summary>+ <div class="answer"><p>預設 50 MB 以內的內容在你複製時就會推送到另一部電腦,那邊可以直接貼上;更大的檔案只同步一條記錄,需要時在複製記錄裏按「拉取到本機」再傳送。上限可以在設定裏調整。</p></div>+ </details>+ <details>+ <summary>免費嗎?公司可以用嗎?</summary>+ <div class="answer"><p>免費。隔空貼以 GNU AGPL-3.0 開源,個人和公司都可以免費使用和修改。分發它,或透過網絡提供修改過的版本時,需要以同樣的授權公開原始碼。</p></div>+ </details>+ <details>+ <summary>官方中轉不限量嗎?</summary>+ <div class="answer"><p>目前預設每機器額度組每日 100 MB 中轉流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。</p></div>+ </details>+ </div>+ <p class="more"><a href="https://github.com/baiyuze/pasteferry/issues">回報問題 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-hk/privacy/">私隱與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a>+ <a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-hk/features/index.html b/docs/zh-hk/features/index.htmlnew file mode 100644index 0000000..a4e8166--- /dev/null+++ b/docs/zh-hk/features/index.html@@ -0,0 +1,300 @@+<!doctype html>+<html lang="zh-HK">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼</title>+ <meta name="description" content="隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一部電腦直接貼上。按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。">+ <link rel="canonical" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼">+ <meta property="og:description" content="隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一部電腦直接貼上。按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。">+ <meta property="og:url" content="https://pasteferry.cc/zh-hk/features/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="zh_HK">+ <meta property="og:locale:alternate" content="zh_CN">+ <meta property="og:locale:alternate" content="zh_TW">+ <meta property="og:locale:alternate" content="en_US">+ <meta property="og:locale:alternate" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <link rel="stylesheet" href="../../assets/features.css">+</head>+<body class="features">+ <a class="skip" href="#main">跳至主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="./" aria-current="page">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>+ <li><a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">隔空貼的功能</p>+ <h1 class="display">複製貼上,<br>本應這麼順手。</h1>+ <p class="lede">Mac、Windows、Linux 之間同步剪貼簿,複製過的隨叫隨到。</p>+ <div class="cta">+ <a class="button" href="../../zh-hk/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ <a class="button quiet" href="../../zh-hk/tour/"><span aria-hidden="true">▶</span> 觀看完整示範</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="../../assets/screenshots/zh-hk/history-dark.png" width="2112" height="1472" alt="隔空貼的複製記錄:側邊欄有複製記錄、收藏、裝置、設定,列表裏是來自不同電腦的文字、圖片、檔案和連結">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">在這部電腦複製,<br>到那部電腦貼上。</h2>+ <p class="f-intro">按下 <span class="k-mac">⌘C</span><span class="k-pc">Ctrl+C</span>,內容就同步到你的其他電腦,到那邊按 <span class="k-mac">⌘V</span><span class="k-pc">Ctrl+V</span> 貼上。不用同一個帳戶,Mac、Windows、Linux 隨意配搭。</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>MacBook</b><kbd>⌘C</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Windows</b><kbd>Ctrl+V</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Linux</b><kbd>Ctrl+V</kbd></div>+ </div>+ <ul class="facts">+ <li><h3>文字、圖片、檔案、資料夾</h3><p>帶格式的文字貼到只認純文字的地方,也不會冒出標籤。</p></li>+ <li><h3>50 MB 以內,複製時就傳好</h3><p>更大的先同步一條記錄,需要時按一下再取。上限可以調。</p></li>+ <li><h3>對方離線也不會漏</h3><p>這段期間複製的,連上後補進對方的複製記錄。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近複製的都在手邊。</h2>+ <p class="f-intro">不用切換到隔空貼,也不用翻聊天記錄。在任何程式裏按一下快速鍵,選一條,它就貼到你剛才的游標處。</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ <div class="qp-stage" role="img" aria-label="示範:寫電郵時按 ⌥V,彈出快速貼上視窗;輸入「發票」搜到發票抬頭,按 Enter,它被貼進電郵內文" data-typing="[["發", false], ["發票", false]]">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>新電郵</span></div>+ <div class="mail-field"><span>收件人:</span><b>王經理</b></div>+ <div class="mail-field"><span>主旨:</span><b>發票資料</b></div>+ <div class="mail-body"><p>王經理你好,</p><p>我們的發票資料如下:</p><p class="mail-line"><span class="pasted">發票抬頭:隔空科技有限公司 商業登記號碼 12345678</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true"><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd></div>+ <div class="picker">+ <div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">發票</span><i class="caret"></i><span class="ph">搜尋</span></span></div>+ <div class="qp-tabs"><span class="on">全部</span><span>文字</span><span>連結</span><span>圖片</span><span>檔案</span><span>收藏</span></div>+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all">1</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議改到星期四下午 3 點,地點不變</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all">2</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all">3</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌面電腦 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all">4</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描本.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all">5</span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票抬頭:隔空科技有限公司 商業登記號碼 12345678</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all">6</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all">7</span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票寄到財務部,註明訂單編號</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all">8</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>+ <div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>貼上</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>純文字</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只複製</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>關閉</span></div>+ </div>+ </div>+ <ol class="qp-steps">+ <li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何程式裏都可以。視窗出現在螢幕中間,選完自動回到原來的程式。</p></li>+ <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔案名稱都能搜。不搜的時候,頭 9 條按數字直接選。</p></li>+ <li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就貼好了</h3><p>內容直接貼到剛才的游標處。<span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 貼上純文字,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只複製不貼上。</p></li>+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">快速鍵可以在設定裏更換或關閉。Mac 上直接貼上需要授予「輔助使用」權限,未授權時選取的內容放入剪貼簿,再由你按 ⌘V;Linux 的 Wayland 桌面上也是選取後按 Ctrl+V。</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="fav-title">常用的,<br>收藏起來。</h2>+ <p class="f-intro">發票抬頭、地址、常用回覆,按一下星號就另存一份。收藏不會過期,清空複製記錄也還在。</p>+ <figure class="f-shot" data-reveal>+ <img src="../../assets/screenshots/zh-hk/favorites-dark.png" width="2112" height="1472" loading="lazy" alt="收藏頁:發票抬頭、常用回覆、下載連結、商業登記證.pdf 等五條收藏,每條右邊是藍色的星號">+ </figure>+ <ul class="facts">+ <li><h3>不會被清理</h3><p>複製記錄到期自動清理,收藏一直留着。</p></li>+ <li><h3>另存一份</h3><p>原檔案之後改動或刪除,都不影響收藏裏的那份。</p></li>+ <li><h3>快速貼上視窗裏也有</h3><p>切到「收藏」分頁,或者按 <span class="k-mac">⌘D</span><span class="k-pc">Ctrl+D</span> 收藏選取的那一條。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">細節裏,<br>也替你想好了。</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>連結單獨一欄 <span class="new">新</span></h3>+ <p>複製記錄按類型篩選:文字、連結、圖片、檔案、收藏,一按就分開。</p>+ <div class="mini" aria-hidden="true"><div class="seg"><span data-tab="all" class="on">全部</span><span data-tab="text">文字</span><span data-tab="link">連結</span><span data-tab="image">圖片</span><span data-tab="file">檔案</span><span data-tab="fav">收藏</span></div><ul class="mini-rows"><li data-kind="text"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議改到星期四下午 3 點</span></li><li data-kind="link"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span></li><li data-kind="image"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片 · 2.4 MB</span></li><li data-kind="file"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span class="t">季度報告-最終版.key</span></li><li data-kind="link" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://pasteferry.cc/download/</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li><li data-kind="text" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票抬頭:隔空科技有限公司</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li></ul></div>+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>停一停,就看到全文 <span class="new">新</span></h3>+ <p>滑鼠在一條上停半秒,彈出完整的文字、放大的圖片或全部檔案名稱,不用打開。</p>+ <div class="crop"><img src="../../assets/screenshots/zh-hk/hover-dark.png" width="2112" height="1472" loading="lazy" alt="滑鼠停在一條會議記錄上,彈出的提示框顯示它的全文:負責人、發佈時段和監察要求"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>三日內複製的,搜得到</h3>+ <p>按文字內容或檔案名稱搜尋,按一下就放回剪貼簿。記錄預設保留 3 日,最長可以留 30 日。</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合約">合約</span><i class="caret"></i></div>+ <ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合約掃描本.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合約第 3 條改為按季付款</span></li></ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>大檔案,用時再取</h3>+ <p>超過 50 MB 的先只同步一條記錄,按「接收」才開始傳,不佔你的頻寬。</p>+ <div class="mini big" aria-hidden="true">+ <svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><div><b>發佈會示範錄影.mov</b><span>來自 Mac mini · 1.3 GB</span><i class="bar"><i></i></i></div>+ <span class="receive">接收</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>整個資料夾也可以</h3>+ <p>複製一個資料夾,到另一部電腦貼上的就是同樣的資料夾,結構不變。</p>+ <ul class="mini tree" aria-hidden="true">+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>design-assets</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>logo.svg</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>[email protected]</li>+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>檔案名稱不衝突</h3>+ <p>Mac 上能用、Windows 上不合法的字元,收到時換成全形字元,檔案名稱照樣看得懂。</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>會議記錄 10:30?.md</code></div>+ <div><span>Windows</span><code>會議記錄 10:30?.md</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">家裏和公司,<br>也能直連。</h2>+ <p class="f-intro">同一網絡裏裝好就能配對。不在同一網絡時,開啟官方服務就可以,不用自己架設伺服器。兩部電腦優先打洞直連,打不通才加密中轉。</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="示意:家裏和公司兩個網絡裏的兩部電腦經官方服務找到彼此,然後直接相連">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">官方服務</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">家裏</text>+ <text class="n-label" x="756" y="164" text-anchor="end">公司</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">直連 · 端對端加密</text>+ </svg>+ </figure>+ <ul class="facts">+ <li><h3>同一網絡</h3><p>不需要伺服器,輸入配對碼就可以。</p></li>+ <li><h3>跨網絡</h3><p>官方服務、自建伺服器或 Tailscale,任選一種。</p></li>+ <li><h3>端對端加密</h3><p>配對時核對安全指紋,伺服器看不到內容。</p></li>+ </ul>+ <p class="more"><a href="../../zh-hk/start/#server">選擇連接方式 →</a><a href="../../zh-hk/how/">運作原理 →</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">幾個數字。</h2>+ <dl class="numbers" data-reveal>+ <div><dt><b>3</b> <span>個系統</span></dt><dd>macOS、Windows、Linux</dd></div>+ <div><dt><b>50 MB</b> <span>以內</span></dt><dd>複製的同時就傳好</dd></div>+ <div><dt><b>≈330 ms</b></dt><dd>區域網絡直連傳 20 MB 檔案</dd></div>+ <div><dt><b>0</b> <span>個帳戶</span></dt><dd>不用登記,配對即用</dd></div>+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">現在就試試。</h2>+ <div class="cta">+ <a class="button" href="../../zh-hk/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ </div>+ <p class="note">版本 2.3.0,免費開源。macOS 13 或以上;Windows 10、11;Linux(x64 與 ARM64)。</p>+ <a class="start-link" href="../../zh-hk/start/">第一次使用?看看快速開始,三步設定好 →</a>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-hk/privacy/">私隱與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a>+ <a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script src="../../assets/features.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-hk/how/index.html b/docs/zh-hk/how/index.htmlnew file mode 100644index 0000000..d620b71--- /dev/null+++ b/docs/zh-hk/how/index.html@@ -0,0 +1,262 @@+<!doctype html>+<html lang="zh-HK">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>運作原理:直連、多出口探測與出問題時的處理 — 隔空貼</title>+ <meta name="description" content="按下複製之後發生了甚麼,兩部電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。">+ <link rel="canonical" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="運作原理:直連、多出口探測與出問題時的處理 — 隔空貼">+ <meta property="og:description" content="按下複製之後發生了甚麼,兩部電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。">+ <meta property="og:url" content="https://pasteferry.cc/zh-hk/how/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_HK">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳至主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="./" aria-current="page">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>+ <li><a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-hk/">隔空貼</a></p>+ <h1 class="display">運作原理</h1>+ <p class="lede">按下複製之後發生了甚麼,兩部電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。</p>+ </div>+ </section>++ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">按下複製之後</h2>+ <p class="intro">文字、圖片、檔案、整個資料夾,都走同一條路。</p>+ <ol class="flow">+ <li><h3>偵測</h3><p>在 Mac 上,背景服務每隔一小段時間查看一次剪貼簿的變更計數,只看計數和類型,不需要授權,也不會彈出系統提示;在 Windows 上,複製的一刻系統就會通知它。</p></li>+ <li><h3>傳輸</h3><p>文字隨訊息一起發出;50 MB 以內的圖片和檔案打包成串流即時推送;更大的檔案只發送一條記錄,等你需要時再傳。</p></li>+ <li><h3>貼上</h3><p>另一部電腦先把內容存到本機,再寫入剪貼簿。按下 ⌘V 或 Ctrl+V 貼上的,就是本機上的真實檔案。</p></li>+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title">+ <div class="wrap">+ <h2 id="how-title">隔空貼的連線方式</h2>+ <p class="intro">同一網絡裏,裝置無需伺服器就能找到彼此;跨網絡時,官方服務或自建伺服器協助交換連線資料。優先打洞直連,失敗後才使用加密中轉。下圖展示通用的信令與中轉結構。</p>+ <figure class="diagram">+ <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">+ <title id="diagram-title">隔空貼的連線方式</title>+ <desc id="diagram-desc">電腦 A 與電腦 B(Mac 或 Windows)之間是 WebRTC 直連;兩部電腦都透過信令連接到信令與中轉服務;直連失敗時,資料經伺服器的 TURN 中轉。</desc>+ <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>+ <text class="d-title" x="480" y="64" text-anchor="middle">信令與中轉服務</text>+ <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中轉</text>+ <path class="d-sig" d="M140 210V58H360"/>+ <path class="d-sig" d="M820 210V58H600"/>+ <path class="d-relay" d="M196 210V100H360"/>+ <path class="d-relay" d="M764 210V100H600"/>+ <text class="d-note" x="210" y="50">信令:交換連線資訊</text>+ <text class="d-note" x="210" y="128">中轉:僅在打不通直連時</text>+ <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>+ <text class="d-sub" x="160" y="290" text-anchor="middle">在這裏複製</text>+ <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>+ <text class="d-sub" x="800" y="290" text-anchor="middle">在這裏貼上</text>+ <path class="d-direct" d="M280 270H680"/>+ <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直連,DTLS 加密</text>+ <text class="d-note" x="480" y="298" text-anchor="middle">資料只在兩部電腦之間傳輸</text>+ <g class="d-legend" transform="translate(40 372)">+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">資料(直連)</text>+ <path class="d-relay" d="M210 0H238"/><text x="248" y="5">資料(中轉,後備)</text>+ <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>+ </g>+ </svg>+ <ul class="points diagram-text">+ <li><strong>WebRTC 直連,DTLS 加密</strong> 資料只在兩部電腦之間傳輸</li>+ <li><strong>信令與中轉服務</strong> 信令、STUN、TURN 中轉</li>+ <li>中轉:僅在打不通直連時</li>+ </ul>+ </figure>+ </div>+ </section>++ <section class="section" id="multi-uplink" aria-labelledby="multi-title">+ <div class="wrap">+ <h2 id="multi-title">公司網絡也能直連</h2>+ <p class="intro">公司雙線、電訊商地址池這類網絡有多個出口,會按目標地址選擇走哪一個。只探測一次只會知道其中一個出口,結果只能經伺服器中轉。隔空貼會探測每個出口,把所有地址都告訴對方。</p>+ <div class="cols">+ <div>+ <h3>做了甚麼</h3>+ <ul class="points">+ <li><strong>共用一個端口。</strong>所有連線都從同一個本機 UDP 端口收發,向不同伺服器查到的地址才能對得上。</li>+ <li><strong>探測每個出口。</strong>在這個端口上同時詢問 7 部 IP 分散的伺服器,網絡有幾個出口就取得幾個地址;受 DNS 污染的地址會先過濾掉。</li>+ <li><strong>全部告訴對方。</strong>對方逐個嘗試,與實際出口吻合的那一個就能打通。</li>+ <li><strong>記住見過的出口。</strong>某次漏掉的出口如果沒有改變端口,就用「出口 IP + 本機端口」推算補上。</li>+ <li><strong>定好誰先發封包。</strong>有些路由器收到對方先到的封包,會佔用該端口。一方先公佈出口地址,另一方先向那邊發封包,再公佈自己的;重試時兩種次序輪流使用。</li>+ <li><strong>閒置時重試直連。</strong>直連失敗且中轉可用時,先透過中轉保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中轉。</li>+ </ul>+ </div>+ <div>+ <h3>用真實的網絡拓撲驗證</h3>+ <p class="small">NAT 打洞實驗室用 Linux 網絡命名空間與 iptables 搭建這些拓撲,用隔空貼真實的連線程式碼逐一執行,每次提交程式碼都會自動執行。</p>+ <div class="table-scroll">+ <table>+ <thead><tr><th scope="col">場景</th><th scope="col">結果</th></tr></thead>+ <tbody>+ <tr><td>單出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>兩個出口,舊版本(對照)</td><td>中轉</td></tr>+ <tr><td>兩個出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>四個出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>兩個出口,第二個未探測到,沒有歷史</td><td>中轉</td></tr>+ <tr><td>兩個出口,第二個未探測到,有歷史</td><td>直連</td></tr>+ <tr><td>兩個出口 ↔ 兩個出口</td><td>直連</td></tr>+ <tr><td>兩個出口 ↔ 端口隨機分配的 NAT</td><td>中轉</td></tr>+ <tr><td>一開始打不通,之後網絡恢復</td><td>先中轉,隨後直連</td></tr>+ <tr><td>公司路由器會為外來封包佔用端口</td><td>直連</td></tr>+ <tr><td>家用路由器會為外來封包佔用端口</td><td>先中轉,重試一次後直連</td></tr>+ <tr><td>沒有伺服器,同一網段,靠 mDNS 發現</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩個網段,一方記得對方地址</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩部都阻擋入站連線,都記得地址</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩部都阻擋入站連線,只有一方記得</td><td>連不上(已知限制)</td></tr>+ <tr><td>沒有伺服器,兩個網段之間被隔離</td><td>連不上</td></tr>+ </tbody>+ </table>+ </div>+ <p class="small">實測:一部位於有 4 個出口的公司網絡的 Mac 與家裏的 Mac,改動前只能中轉,速度受伺服器頻寬限制在 0.6 MB/s;改動後直連,連上伺服器後約 3 秒建立。</p>+ <p class="small">測量過程、設計取捨與遇過的問題,見<a href="../../design/nat-traversal.html">技術方案</a>。</p>+ </div>+ </div>+ </div>+ </section>++ <section class="section" id="fallbacks" aria-labelledby="fallback-title">+ <div class="wrap">+ <h2 id="fallback-title">出問題時會怎樣</h2>+ <p class="intro">每個人的網絡環境都不同。以下這些情況都考慮過,也都有對應的測試。</p>+ <dl class="fallbacks">+ <div><dt>在同一網絡裏找不到對方</dt><dd>不同網段、訪客網絡、開啟了 AP 隔離的 Wi‑Fi 會阻礙區域網絡發現。配對時輸入對方配對碼下面顯示的地址就可以;之後地址會被記住,兩邊都換了地址時,在裝置列表裏為它重新輸入一次。</dd></div>+ <div><dt>系統阻擋區域網絡</dt><dd>由 macOS 15 起,背景服務連接區域網絡裏的裝置需要你允許;Windows 第一次執行時會詢問防火牆設定。未允許時 App 會提示,並提供直達設定的按鈕。</dd></div>+ <div><dt>兩部電腦打不通直連</dt><dd>官方模式在直連失敗後,按目前額度申請中轉;自建模式使用自己的 TURN 中轉。兩種方式的內容均保持端到端加密。</dd></div>+ <div><dt>公共 STUN 伺服器連不上</dt><dd>在內地連公共 STUN 時通時斷。伺服器自帶 STUN,用戶端會優先使用它。</dd></div>+ <div><dt>從中轉切回直連</dt><dd>直連失敗且中轉可用時,先透過中轉保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中轉。</dd></div>+ <div><dt>對方進入睡眠、斷網或重新啟動</dt><dd>連線悄悄斷了也能察覺,會立即關閉並重新連線。這期間複製的內容會記下來,連上後補發到對方的複製記錄裏,但不會覆蓋對方此刻剪貼簿裏的內容。</dd></div>+ <div><dt>伺服器斷線</dt><dd>自動重新連線,間隔由 1 秒開始倍增、最長 30 秒,並加入隨機抖動,避免大量裝置同時重新連線。同一網絡裏的裝置不受影響,照常同步。</dd></div>+ <div><dt>檔案太大</dt><dd>超過上限的只同步一條記錄,需要時再拉取。拉取時如果來源檔案已被刪除,會清楚告訴你,而不是莫名其妙地失敗。</dd></div>+ <div><dt>貼到只接受純文字的地方</dt><dd>從網頁複製的帶格式文字會同時寫入 HTML 和純文字兩份,貼到哪裏都不會冒出標籤。</dd></div>+ <div><dt>檔案名稱在 Windows 上不合法</dt><dd>Mac 上可以用的冒號、問號等字元,收到時會換成對應的全形字元,名稱照樣看得懂;只差大小寫的兩個檔案也不會互相覆蓋。</dd></div>+ <div><dt>複製的是密碼</dt><dd>在 Windows 上,密碼管理工具複製的內容會帶有「不要記錄」的標記,隔空貼看到就會略過:不同步,也不加入複製記錄。</dd></div>+ <div><dt>仍未授權讀取剪貼簿</dt><dd>不會去讀取內容,否則背景程序會卡在一個看不見的系統彈出視窗上。App 裏會提示你授權,並提供直達設定的按鈕。</dd></div>+ <div><dt>背景服務崩潰</dt><dd>Mac 上由系統的 launchd、Windows 上由隔空貼自帶的守護程序自動重新啟動,有 10 秒節流,不會無止境地重新啟動。</dd></div>+ <div><dt>更新了 App,或者移動了它的位置</dt><dd>開啟 App 時會自動修正登入項目,並把背景服務重新啟動到新版本。</dd></div>+ </dl>+ </div>+ </section>++ <section class="section" id="specs" aria-labelledby="specs-title">+ <div class="wrap">+ <h2 id="specs-title">技術規格</h2>+ <div class="table-scroll">+ <table class="specs">+ <tbody>+ <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>發佈</td></tr>+ <tr><th scope="row">Mac 用戶端</th><td>macOS 13 Ventura 或以上;Apple 晶片與 Intel 處理器的 Mac 各有一個安裝檔,約 25 MB,不需要 Rosetta;另有兩種 Mac 通用的版本,約 47 MB</td></tr>+ <tr><th scope="row">Windows 用戶端</th><td>Windows 10 與 Windows 11,x64;為目前用戶安裝,不需要管理員權限;安裝檔約 23 MB</td></tr>+ <tr><th scope="row">Linux 用戶端</th><td>x64 與 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他發行版),約 22 MB;需要 X11 桌面,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含);GTK 3</td></tr>+ <tr><th scope="row">伺服器</th><td>只在自建時需要部署;使用官方服務無需自備伺服器。自建支援 Linux x86_64/ARM64、macOS 與 Windows 10/11 x64。</td></tr>+ <tr><th scope="row">介面語言</th><td>簡體中文、繁體中文(台灣、香港)、English、日本語,預設跟隨系統,可在設定裏切換</td></tr>+ <tr><th scope="row">同步的內容</th><td>純文字、帶格式的文字、圖片與截圖、檔案、資料夾,可以按類型關閉</td></tr>+ <tr><th scope="row">傳輸</th><td>WebRTC 數據通道,直連優先,打不通時經 TURN 中轉;同一網絡裏經 mDNS 發現、UDP 8788 交換連線資訊;多出口網絡會逐一探測每個出口;檔案以 tar + zstd 串流方式打包</td></tr>+ <tr><th scope="row">加密與身份</th><td>DTLS 端對端加密;裝置身份為 Ed25519 密鑰;信令訊息逐條簽名</td></tr>+ <tr><th scope="row">配對</th><td>6 位配對碼,5 分鐘內有效,字元集剔除了 0/O、1/I 等容易混淆的字元;配對時人手核對安全指紋</td></tr>+ <tr><th scope="row">自動同步上限</th><td>預設 50 MB,可在 1 MB 到 1 GB 之間調整</td></tr>+ <tr><th scope="row">記錄保留</th><td>預設 3 天,可在 1 小時到 30 天之間調整,到期自動清理</td></tr>+ <tr><th scope="row">實測速度</th><td>區域網絡直連傳輸 20 MB 檔案約 330 毫秒,校驗和一致</td></tr>+ <tr><th scope="row">技術架構</th><td>背景服務與伺服器用 Go(Windows 上以純 Go 呼叫 Win32,Linux 上以純 Go 使用 X11 協定),介面用 Flutter(三個系統共用一套程式碼),訊息定義用 Protocol Buffers</td></tr>+ <tr><th scope="row">授權</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-hk/privacy/">私隱與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a>+ <a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.htmlindex 915ba67..21d23bb 100644--- a/docs/zh-hk/index.html+++ b/docs/zh-hk/index.html@@ -40,6 +40,14 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script>+ (function () {+ var moved = {"how": "how/", "multi-uplink": "how/#multi-uplink", "install": "download/", "faq": "faq/", "security": "security/", "specs": "how/#specs"};+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script><script type="application/ld+json">{"@context": "https://schema.org",@@ -84,107 +92,6 @@"name": "baiyuze","url": "https://github.com/baiyuze"}- },- {- "@type": "FAQPage",- "mainEntity": [- {- "@type": "Question",- "name": "開啟 UU 遠程時,為甚麼不斷出現 .uuremote_ 檔案?",- "acceptedAnswer": {- "@type": "Answer",- "text": "UU 遠程會在系統剪貼簿裏寫入臨時佔位檔案,舊版隔空貼把它們當成普通檔案反覆記錄和轉發。1.3.2 會在傳送和接收時過濾已確認的佔位命名,並在啟動時清理純佔位記錄。正常的空檔案、隱藏檔案和大檔案不受此規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都升級;其他軟件如果也同步剪貼簿,仍可能產生普通內容的重複記錄。"- }- },- {- "@type": "Question",- "name": "和 macOS 內建的「通用剪貼簿」有甚麼分別?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一帳戶。現在啟用官方服務就能跨網絡同步,無需自行架設伺服器。優先直連,始終端到端加密。 如果你的兩部 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能已經足夠。"- }- },- {- "@type": "Question",- "name": "伺服器會看到我複製的內容嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "伺服器無法解密複製內容:直連時內容不經過中轉伺服器;中轉時轉發端到端加密封包。官方服務保留必要裝置與用量統計,詳見私隱說明。原始碼可供審計,不代表能證明私有正式環境的儲存行為。"- }- },- {- "@type": "Question",- "name": "公司網絡(雙線、多出口)能直連嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "能。這類網絡按目標地址選擇出口,隔空貼會在同一個端口上向多部伺服器探測,取得每個出口的地址後一併發給對方,由對方逐個嘗試。實測公司 4 個出口與家用寬頻之間可以直連。對方是端口隨機分配的 NAT 時仍會經中轉。"- }- },- {- "@type": "Question",- "name": "一定要自己準備伺服器嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同網絡時,在兩部電腦上啟用官方服務即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、自建伺服器與 Tailscale 繼續可用。"- }- },- {- "@type": "Question",- "name": "家裏沒有公網 IP,能在家和公司之間同步嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同網絡時,在兩部電腦上啟用官方服務即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、自建伺服器與 Tailscale 繼續可用。"- }- },- {- "@type": "Question",- "name": "在同一個網絡裏,為甚麼找不到另一部電腦?",- "acceptedAnswer": {- "@type": "Answer",- "text": "先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見同一網絡教學。"- }- },- {- "@type": "Question",- "name": "支援 Windows 和 Linux 嗎?iPhone 呢?",- "acceptedAnswer": {- "@type": "Answer",- "text": "支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真實檔案,可以直接貼進檔案總管、微信、Office。 也支援 x64 與 ARM64 的 Linux 桌面:X11,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含)。複製的檔案可以直接貼進檔案管理員。 暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監測剪貼簿,做不到複製後即時同步。"- }- },- {- "@type": "Question",- "name": "為甚麼第一次開啟時系統會阻擋一下?",- "acceptedAnswer": {- "@type": "Answer",- "text": "隔空貼仍未經 Apple 公證,Windows 版也仍未有程式碼簽署,兩者都需要每年付費的證書。 在 Mac 上,到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」;在 Windows 上,在「Windows 已保護您的電腦」提示裏按「其他資訊」,再按「仍要執行」。兩者都只需要做一次。"- }- },- {- "@type": "Question",- "name": "大檔案怎樣處理?",- "acceptedAnswer": {- "@type": "Answer",- "text": "預設 50 MB 以內的內容在你複製時就會推送到另一部電腦,那邊可以直接貼上;更大的檔案只同步一條記錄,需要時在複製記錄裏按「拉取到本機」再傳送。上限可以在設定裏調整。"- }- },- {- "@type": "Question",- "name": "免費嗎?公司可以用嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "免費。隔空貼以 GNU AGPL-3.0 開源,個人和公司都可以免費使用和修改。分發它,或透過網絡提供修改過的版本時,需要以同樣的授權公開原始碼。"- }- },- {- "@type": "Question",- "name": "官方中轉不限量嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "目前預設每機器額度組每日 100 MB 中轉流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。"- }- }- ]}]}@@ -197,12 +104,23 @@<div class="wrap"><a class="brand" href="./" aria-label="隔空貼首頁"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="start/">快速開始</a>- <a class="wide" href="#how">運作原理</a>- <a class="wide" href="#faq">常見問題</a>- <a class="mid" href="start/#server">連線方式</a>+ <a href="features/">功能</a>+ <a class="mid" href="start/">快速開始</a>+ <a class="wide" href="start/#server">連線方式</a><a href="download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="start/">快速開始</a></li>+ <li class="narrow"><a href="start/#server">連線方式</a></li>+ <li><a href="how/">運作原理</a></li>+ <li><a href="security/">安全與私隱</a></li>+ <li><a href="faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>@@ -220,7 +138,7 @@<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="official/">2.1 新增:跨網絡同步,無需自建伺服器 →</a>+ <a class="release-note" href="features/#quick-paste">2.4 新功能:按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 快速貼上 →</a><h1 class="display">在這部電腦複製,<br>到那部電腦貼上。</h1><p class="lede">Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一帳戶。現在啟用官方服務就能跨網絡同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><div class="cta">@@ -256,6 +174,82 @@</div></section>+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近複製的都在手邊。</h2>+ <p class="intro">在任何程式裏按一下,複製記錄就出現在螢幕中間。按數字或 Enter,選取的內容直接貼上;常用的內容收藏起來,隨時取用。</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="../assets/screenshots/zh-hk/card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="快速貼上視窗:頂部是搜尋框和全部、文字、連結、圖片、檔案、收藏六個分頁,下面是帶序號的複製記錄,底列是按鍵說明">+ </figure>+ <p class="more"><a href="features/#quick-paste">了解快速貼上 →</a></p>+ </div>+ </section>++ <section class="section" id="features" aria-labelledby="grid-title">+ <div class="wrap">+ <h2 id="grid-title">不只是同步剪貼簿。</h2>+ <ul class="tiles">+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/></svg>+ <h3>快速貼上 <span class="new">新</span></h3>+ <p>按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 叫出複製記錄,選取就貼上。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/></svg>+ <h3>收藏 <span class="new">新</span></h3>+ <p>常用的內容另存一份,不會過期。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>+ <h3>檔案與資料夾</h3>+ <p>50 MB 以內複製時就已傳好,更大的需要時再取。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>+ <h3>複製記錄</h3>+ <p>所有裝置複製過的都在這裏,能搜尋,能按類型篩選。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>+ <h3>跨網絡</h3>+ <p>開啟官方服務,家裏和公司之間也能同步。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/></svg>+ <h3>端對端加密</h3>+ <p>優先直連,伺服器看不到你複製了甚麼。</p>+ </li>+ </ul>+ <p class="more"><a href="features/">查看全部功能 →</a></p>+ </div>+ </section>++ <section class="section" id="why" aria-labelledby="why-title">+ <div class="wrap">+ <h2 id="why-title">為甚麼不用現有的方法</h2>+ <p class="intro">「通用剪貼簿」要用同一個 Apple ID,而且裝置要夠近;AirDrop 每次都要按接受;傳給自己要手動下載,檔案還留在別人的伺服器上。一部 Mac 加一部 Windows 電腦時,系統內建的方法一個都用不上。</p>+ <div class="block table-scroll">+ <table class="compare">+ <caption class="skip">隔空貼與其他方式的比較</caption>+ <thead><tr><td></td><th scope="col" class="ours">隔空貼</th><th scope="col">通用剪貼簿</th><th scope="col">AirDrop</th><th scope="col">通訊軟件</th></tr></thead>+ <tbody>+ <tr><th scope="row">不同 Apple ID 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要對方接受</td><td class="yes">可以</td></tr>+ <tr><th scope="row">Mac 與 Windows 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">不在同一個網絡(家裏和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">複製後直接貼上,不用按接受</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>+ <tr><th scope="row">檔案與整個資料夾</th><td class="yes ours">可以</td><td class="partial">不穩定</td><td class="yes">可以</td><td class="partial">要先壓縮</td></tr>+ <tr><th scope="row">找回之前複製過的內容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻查聊天記錄</td></tr>+ <tr><th scope="row">只有自己的裝置可解密內容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">視軟件而定</td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+<section class="section" id="deploy" aria-labelledby="deploy-title"><div class="wrap"><h2 id="deploy-title">兩部電腦怎樣連起來</h2>@@ -294,313 +288,6 @@</div></section>- <section class="section" aria-labelledby="history-title">- <div class="wrap">- <h2 id="history-title">所有裝置上複製過的內容,都在這裏</h2>- <p class="intro">複製記錄保留最近 3 天的內容,隨時可以放回剪貼簿,圖片按一下就能預覽。50 MB 以內的檔案在你複製的時候已經傳送好了,更大的檔案需要時按一下再拉取。想找以前複製過的,用文字內容或檔案名稱搜尋一下就找到。</p>- <figure class="shot">- <img src="../assets/screenshots/zh-hk/history-dark.png" width="2112" height="1472" alt="隔空貼的複製記錄:來自 MacBook Air 和 Mac mini 的檔案、圖片、文字,大檔案顯示「接收」按鈕">- </figure>- </div>- </section>-- <section class="section" aria-labelledby="flow-title">- <div class="wrap">- <h2 id="flow-title">按下複製之後</h2>- <p class="intro">文字、圖片、檔案、整個資料夾,都走同一條路。</p>- <ol class="flow">- <li><h3>偵測</h3><p>在 Mac 上,背景服務每隔一小段時間查看一次剪貼簿的變更計數,只看計數和類型,不需要授權,也不會彈出系統提示;在 Windows 上,複製的一刻系統就會通知它。</p></li>- <li><h3>傳輸</h3><p>文字隨訊息一起發出;50 MB 以內的圖片和檔案打包成串流即時推送;更大的檔案只發送一條記錄,等你需要時再傳。</p></li>- <li><h3>貼上</h3><p>另一部電腦先把內容存到本機,再寫入剪貼簿。按下 ⌘V 或 Ctrl+V 貼上的,就是本機上的真實檔案。</p></li>- </ol>- </div>- </section>-- <section class="section" aria-labelledby="why-title">- <div class="wrap">- <h2 id="why-title">為甚麼不用現有的方法</h2>- <p class="intro">「通用剪貼簿」要用同一個 Apple ID,而且裝置要夠近;AirDrop 每次都要按接受;傳給自己要手動下載,檔案還留在別人的伺服器上。一部 Mac 加一部 Windows 電腦時,系統內建的方法一個都用不上。</p>- <div class="block table-scroll">- <table class="compare">- <caption class="skip">隔空貼與其他方式的比較</caption>- <thead><tr><td></td><th scope="col" class="ours">隔空貼</th><th scope="col">通用剪貼簿</th><th scope="col">AirDrop</th><th scope="col">通訊軟件</th></tr></thead>- <tbody>- <tr><th scope="row">不同 Apple ID 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要對方接受</td><td class="yes">可以</td></tr>- <tr><th scope="row">Mac 與 Windows 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">不在同一個網絡(家裏和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">複製後直接貼上,不用按接受</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>- <tr><th scope="row">檔案與整個資料夾</th><td class="yes ours">可以</td><td class="partial">不穩定</td><td class="yes">可以</td><td class="partial">要先壓縮</td></tr>- <tr><th scope="row">找回之前複製過的內容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻查聊天記錄</td></tr>- <tr><th scope="row">只有自己的裝置可解密內容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">視軟件而定</td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="how" aria-labelledby="how-title">- <div class="wrap">- <h2 id="how-title">運作原理</h2>- <p class="intro">同一網絡裏,裝置無需伺服器就能找到彼此;跨網絡時,官方服務或自建伺服器協助交換連線資料。優先打洞直連,失敗後才使用加密中轉。下圖展示通用的信令與中轉結構。</p>- <figure class="diagram">- <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">- <title id="diagram-title">隔空貼的連線方式</title>- <desc id="diagram-desc">電腦 A 與電腦 B(Mac 或 Windows)之間是 WebRTC 直連;兩部電腦都透過信令連接到信令與中轉服務;直連失敗時,資料經伺服器的 TURN 中轉。</desc>- <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>- <text class="d-title" x="480" y="64" text-anchor="middle">信令與中轉服務</text>- <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中轉</text>- <path class="d-sig" d="M140 210V58H360"/>- <path class="d-sig" d="M820 210V58H600"/>- <path class="d-relay" d="M196 210V100H360"/>- <path class="d-relay" d="M764 210V100H600"/>- <text class="d-note" x="210" y="50">信令:交換連線資訊</text>- <text class="d-note" x="210" y="128">中轉:僅在打不通直連時</text>- <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>- <text class="d-sub" x="160" y="290" text-anchor="middle">在這裏複製</text>- <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>- <text class="d-sub" x="800" y="290" text-anchor="middle">在這裏貼上</text>- <path class="d-direct" d="M280 270H680"/>- <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直連,DTLS 加密</text>- <text class="d-note" x="480" y="298" text-anchor="middle">資料只在兩部電腦之間傳輸</text>- <g class="d-legend" transform="translate(40 372)">- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">資料(直連)</text>- <path class="d-relay" d="M210 0H238"/><text x="248" y="5">資料(中轉,後備)</text>- <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>- </g>- </svg>- <ul class="points diagram-text">- <li><strong>WebRTC 直連,DTLS 加密</strong> 資料只在兩部電腦之間傳輸</li>- <li><strong>信令與中轉服務</strong> 信令、STUN、TURN 中轉</li>- <li>中轉:僅在打不通直連時</li>- </ul>- </figure>- </div>- </section>-- <section class="section" id="multi-uplink" aria-labelledby="multi-title">- <div class="wrap">- <h2 id="multi-title">公司網絡也能直連</h2>- <p class="intro">公司雙線、電訊商地址池這類網絡有多個出口,會按目標地址選擇走哪一個。只探測一次只會知道其中一個出口,結果只能經伺服器中轉。隔空貼會探測每個出口,把所有地址都告訴對方。</p>- <div class="cols">- <div>- <h3>做了甚麼</h3>- <ul class="points">- <li><strong>共用一個端口。</strong>所有連線都從同一個本機 UDP 端口收發,向不同伺服器查到的地址才能對得上。</li>- <li><strong>探測每個出口。</strong>在這個端口上同時詢問 7 部 IP 分散的伺服器,網絡有幾個出口就取得幾個地址;受 DNS 污染的地址會先過濾掉。</li>- <li><strong>全部告訴對方。</strong>對方逐個嘗試,與實際出口吻合的那一個就能打通。</li>- <li><strong>記住見過的出口。</strong>某次漏掉的出口如果沒有改變端口,就用「出口 IP + 本機端口」推算補上。</li>- <li><strong>定好誰先發封包。</strong>有些路由器收到對方先到的封包,會佔用該端口。一方先公佈出口地址,另一方先向那邊發封包,再公佈自己的;重試時兩種次序輪流使用。</li>- <li><strong>閒置時重試直連。</strong>直連失敗且中轉可用時,先透過中轉保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中轉。</li>- </ul>- </div>- <div>- <h3>用真實的網絡拓撲驗證</h3>- <p class="small">NAT 打洞實驗室用 Linux 網絡命名空間與 iptables 搭建這些拓撲,用隔空貼真實的連線程式碼逐一執行,每次提交程式碼都會自動執行。</p>- <div class="table-scroll">- <table>- <thead><tr><th scope="col">場景</th><th scope="col">結果</th></tr></thead>- <tbody>- <tr><td>單出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>兩個出口,舊版本(對照)</td><td>中轉</td></tr>- <tr><td>兩個出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>四個出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>兩個出口,第二個未探測到,沒有歷史</td><td>中轉</td></tr>- <tr><td>兩個出口,第二個未探測到,有歷史</td><td>直連</td></tr>- <tr><td>兩個出口 ↔ 兩個出口</td><td>直連</td></tr>- <tr><td>兩個出口 ↔ 端口隨機分配的 NAT</td><td>中轉</td></tr>- <tr><td>一開始打不通,之後網絡恢復</td><td>先中轉,隨後直連</td></tr>- <tr><td>公司路由器會為外來封包佔用端口</td><td>直連</td></tr>- <tr><td>家用路由器會為外來封包佔用端口</td><td>先中轉,重試一次後直連</td></tr>- <tr><td>沒有伺服器,同一網段,靠 mDNS 發現</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩個網段,一方記得對方地址</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩部都阻擋入站連線,都記得地址</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩部都阻擋入站連線,只有一方記得</td><td>連不上(已知限制)</td></tr>- <tr><td>沒有伺服器,兩個網段之間被隔離</td><td>連不上</td></tr>- </tbody>- </table>- </div>- <p class="small">實測:一部位於有 4 個出口的公司網絡的 Mac 與家裏的 Mac,改動前只能中轉,速度受伺服器頻寬限制在 0.6 MB/s;改動後直連,連上伺服器後約 3 秒建立。</p>- <p class="small">測量過程、設計取捨與遇過的問題,見<a href="../design/nat-traversal.html">技術方案</a>。</p>- </div>- </div>- </div>- </section>-- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">伺服器看不到你複製了甚麼</h2>- <div class="cols">- <ul class="points">- <li><strong>伺服器不儲存帳戶,也不儲存內容。</strong>裝置身份是一把 Ed25519 密鑰,裝置 ID 由公鑰計算得出,伺服器不需要用戶資料表就能驗證身份。</li>- <li><strong>配對時由你核對安全指紋。</strong>兩部電腦的螢幕會顯示同樣的兩行:雙方各自公鑰的指紋。伺服器有能力替換轉發中的公鑰,但替換之後兩邊螢幕就對不上,這一步就是防範中間人攻擊的關卡。</li>- <li><strong>之後的每條訊息都帶簽名,</strong>伺服器無法冒充你的裝置。直連通道的證書在握手後還會再核對一次,不一致就立即中斷。</li>- <li><strong>中轉也只是轉發密文。</strong>TURN 轉發的是加密後的封包,中轉憑證按裝置個別簽發,12 小時後失效。</li>- <li><strong>區域網絡裏也一樣。</strong>裝置在區域網絡裏廣播的只是一個每天都會改變的匿名標識,看不出是誰的電腦,只有開啟「搜尋附近裝置」時才會帶上裝置名稱;配對同樣要核對指紋,之後的訊息同樣帶簽名。</li>- </ul>- <figure class="figure-card">- <img src="../assets/screenshots/zh-hk/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配對時的「核對安全指紋」對話框,顯示 R8NF-2WTC-QL5J,要求與另一部電腦上顯示的完全一致">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">- <div class="wrap">- <h2 id="fallback-title">出問題時會怎樣</h2>- <p class="intro">每個人的網絡環境都不同。以下這些情況都考慮過,也都有對應的測試。</p>- <dl class="fallbacks">- <div><dt>在同一網絡裏找不到對方</dt><dd>不同網段、訪客網絡、開啟了 AP 隔離的 Wi‑Fi 會阻礙區域網絡發現。配對時輸入對方配對碼下面顯示的地址就可以;之後地址會被記住,兩邊都換了地址時,在裝置列表裏為它重新輸入一次。</dd></div>- <div><dt>系統阻擋區域網絡</dt><dd>由 macOS 15 起,背景服務連接區域網絡裏的裝置需要你允許;Windows 第一次執行時會詢問防火牆設定。未允許時 App 會提示,並提供直達設定的按鈕。</dd></div>- <div><dt>兩部電腦打不通直連</dt><dd>官方模式在直連失敗後,按目前額度申請中轉;自建模式使用自己的 TURN 中轉。兩種方式的內容均保持端到端加密。</dd></div>- <div><dt>公共 STUN 伺服器連不上</dt><dd>在內地連公共 STUN 時通時斷。伺服器自帶 STUN,用戶端會優先使用它。</dd></div>- <div><dt>從中轉切回直連</dt><dd>直連失敗且中轉可用時,先透過中轉保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中轉。</dd></div>- <div><dt>對方進入睡眠、斷網或重新啟動</dt><dd>連線悄悄斷了也能察覺,會立即關閉並重新連線。這期間複製的內容會記下來,連上後補發到對方的複製記錄裏,但不會覆蓋對方此刻剪貼簿裏的內容。</dd></div>- <div><dt>伺服器斷線</dt><dd>自動重新連線,間隔由 1 秒開始倍增、最長 30 秒,並加入隨機抖動,避免大量裝置同時重新連線。同一網絡裏的裝置不受影響,照常同步。</dd></div>- <div><dt>檔案太大</dt><dd>超過上限的只同步一條記錄,需要時再拉取。拉取時如果來源檔案已被刪除,會清楚告訴你,而不是莫名其妙地失敗。</dd></div>- <div><dt>貼到只接受純文字的地方</dt><dd>從網頁複製的帶格式文字會同時寫入 HTML 和純文字兩份,貼到哪裏都不會冒出標籤。</dd></div>- <div><dt>檔案名稱在 Windows 上不合法</dt><dd>Mac 上可以用的冒號、問號等字元,收到時會換成對應的全形字元,名稱照樣看得懂;只差大小寫的兩個檔案也不會互相覆蓋。</dd></div>- <div><dt>複製的是密碼</dt><dd>在 Windows 上,密碼管理工具複製的內容會帶有「不要記錄」的標記,隔空貼看到就會略過:不同步,也不加入複製記錄。</dd></div>- <div><dt>仍未授權讀取剪貼簿</dt><dd>不會去讀取內容,否則背景程序會卡在一個看不見的系統彈出視窗上。App 裏會提示你授權,並提供直達設定的按鈕。</dd></div>- <div><dt>背景服務崩潰</dt><dd>Mac 上由系統的 launchd、Windows 上由隔空貼自帶的守護程序自動重新啟動,有 10 秒節流,不會無止境地重新啟動。</dd></div>- <div><dt>更新了 App,或者移動了它的位置</dt><dd>開啟 App 時會自動修正登入項目,並把背景服務重新啟動到新版本。</dd></div>- </dl>- </div>- </section>-- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">安裝</h2>- <p class="intro">每部電腦安裝一個 App。在同一個網絡裏安裝好就能配對;跨網絡時,再選一種方式讓兩部電腦找到彼此。第一次安裝可以跟着<a href="start/">快速開始</a>做。</p>- <div class="install">- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>- <ol>- <li>下載 DMG,開啟後把隔空貼拖進「應用程式」。<span class="aside">Apple 晶片與 Intel 處理器的 Mac 各有一個版本,下載頁會告訴你怎樣分辨自己的 Mac 屬於哪種。</span></li>- <li>從「應用程式」裏開啟。<span class="aside">第一次會提示「無法驗證開發者」:隔空貼仍未經 Apple 公證。到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」,只需要做一次。</span></li>- <li>按「啟用背景同步」。系統詢問是否允許讀取剪貼簿、能否尋找本地網絡上的裝置時,都選擇允許。</li>- <li>跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#macos"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Mac 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>- <ol>- <li>執行 PasteFerry-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">隔空貼仍未有程式碼簽署,Windows 會提示「Windows 已保護您的電腦」:按「其他資訊」,再按「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>。</span></li>- <li>開啟隔空貼,按「啟用背景同步」。關閉視窗後,它會在右下角的系統匣裏繼續執行。防火牆詢問時選擇允許。</li>- <li>跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3>- <ol>- <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓後執行 <code>./PasteFerry/install.sh</code>。</li>- <li>從應用程式選單開啟隔空貼,按「啟用背景同步」。之後它會在登入時自動啟動。</li>- <li>跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#linux"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Linux 版</a>- </div>- </div>- <div class="install-more">- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>連線方式</h3>- <p class="small">同一網絡裏裝好就能配對;不同網絡裏,啟用官方服務即可,無需自建。也保留自建伺服器與 Tailscale,按需要選擇。</p>- <ul class="opts">- <li><a href="official/">官方服務</a><span>跨網絡,無需自建</span></li>- <li><a href="lan/">同一網絡</a><span>甚麼都不用部署</span></li>- <li><a href="cloud/">自建公網伺服器</a><span>自行管理容量與部署</span></li>- <li><a href="tailscale/">Tailscale</a><span>跨網絡,不用伺服器</span></li>- </ul>- <a class="button quiet" href="start/#server">比較連線方式</a>- </div>- <p class="pairing">一部產生配對碼,另一部輸入;核對兩邊的安全指紋後確認。原有配對關係可以繼續使用。 官方服務無需填寫對方 IP;只在區域網絡跨網段或 Tailscale 配對時填寫對方地址。</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">- <div class="wrap">- <h2 id="specs-title">技術規格</h2>- <div class="table-scroll">- <table class="specs">- <tbody>- <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>發佈</td></tr>- <tr><th scope="row">Mac 用戶端</th><td>macOS 13 Ventura 或以上;Apple 晶片與 Intel 處理器的 Mac 各有一個安裝檔,約 25 MB,不需要 Rosetta;另有兩種 Mac 通用的版本,約 47 MB</td></tr>- <tr><th scope="row">Windows 用戶端</th><td>Windows 10 與 Windows 11,x64;為目前用戶安裝,不需要管理員權限;安裝檔約 23 MB</td></tr>- <tr><th scope="row">Linux 用戶端</th><td>x64 與 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他發行版),約 22 MB;需要 X11 桌面,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含);GTK 3</td></tr>- <tr><th scope="row">伺服器</th><td>只在自建時需要部署;使用官方服務無需自備伺服器。自建支援 Linux x86_64/ARM64、macOS 與 Windows 10/11 x64。</td></tr>- <tr><th scope="row">介面語言</th><td>簡體中文、繁體中文(台灣、香港)、English、日本語,預設跟隨系統,可在設定裏切換</td></tr>- <tr><th scope="row">同步的內容</th><td>純文字、帶格式的文字、圖片與截圖、檔案、資料夾,可以按類型關閉</td></tr>- <tr><th scope="row">傳輸</th><td>WebRTC 數據通道,直連優先,打不通時經 TURN 中轉;同一網絡裏經 mDNS 發現、UDP 8788 交換連線資訊;多出口網絡會逐一探測每個出口;檔案以 tar + zstd 串流方式打包</td></tr>- <tr><th scope="row">加密與身份</th><td>DTLS 端對端加密;裝置身份為 Ed25519 密鑰;信令訊息逐條簽名</td></tr>- <tr><th scope="row">配對</th><td>6 位配對碼,5 分鐘內有效,字元集剔除了 0/O、1/I 等容易混淆的字元;配對時人手核對安全指紋</td></tr>- <tr><th scope="row">自動同步上限</th><td>預設 50 MB,可在 1 MB 到 1 GB 之間調整</td></tr>- <tr><th scope="row">記錄保留</th><td>預設 3 天,可在 1 小時到 30 天之間調整,到期自動清理</td></tr>- <tr><th scope="row">實測速度</th><td>區域網絡直連傳輸 20 MB 檔案約 330 毫秒,校驗和一致</td></tr>- <tr><th scope="row">技術架構</th><td>背景服務與伺服器用 Go(Windows 上以純 Go 呼叫 Win32,Linux 上以純 Go 使用 X11 協定),介面用 Flutter(三個系統共用一套程式碼),訊息定義用 Protocol Buffers</td></tr>- <tr><th scope="row">授權</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="faq" aria-labelledby="faq-title">- <div class="wrap">- <h2 id="faq-title">常見問題</h2>- <div class="faq">- <details>- <summary>開啟 UU 遠程時,為甚麼不斷出現 .uuremote_ 檔案?</summary>- <div class="answer"><p>UU 遠程會在系統剪貼簿裏寫入臨時佔位檔案,舊版隔空貼把它們當成普通檔案反覆記錄和轉發。1.3.2 會在傳送和接收時過濾已確認的佔位命名,並在啟動時清理純佔位記錄。正常的空檔案、隱藏檔案和大檔案不受此規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都升級;其他軟件如果也同步剪貼簿,仍可能產生普通內容的重複記錄。</p></div>- </details>- <details>- <summary>和 macOS 內建的「通用剪貼簿」有甚麼分別?</summary>- <div class="answer"><p>Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一帳戶。現在啟用官方服務就能跨網絡同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><p>如果你的兩部 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能已經足夠。</p></div>- </details>- <details>- <summary>伺服器會看到我複製的內容嗎?</summary>- <div class="answer"><p>伺服器無法解密複製內容:直連時內容不經過中轉伺服器;中轉時轉發端到端加密封包。官方服務保留必要裝置與用量統計,詳見私隱說明。原始碼可供審計,不代表能證明私有正式環境的儲存行為。</p></div>- </details>- <details>- <summary>公司網絡(雙線、多出口)能直連嗎?</summary>- <div class="answer"><p>能。這類網絡按目標地址選擇出口,隔空貼會在同一個端口上向多部伺服器探測,取得每個出口的地址後一併發給對方,由對方逐個嘗試。實測公司 4 個出口與家用寬頻之間可以直連。對方是端口隨機分配的 NAT 時仍會經中轉。</p></div>- </details>- <details>- <summary>一定要自己準備伺服器嗎?</summary>- <div class="answer"><p>不需要。不同網絡時,在兩部電腦上啟用<a href="official/">官方服務</a>即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、<a href="cloud/">自建伺服器</a>與 <a href="tailscale/">Tailscale</a> 繼續可用。</p></div>- </details>- <details>- <summary>家裏沒有公網 IP,能在家和公司之間同步嗎?</summary>- <div class="answer"><p>不需要。不同網絡時,在兩部電腦上啟用<a href="official/">官方服務</a>即可,不用購買雲端主機或填寫地址。預設關閉,目前提供每日 100 MB 中轉額度,直連不消耗此額度。區域網絡、<a href="cloud/">自建伺服器</a>與 <a href="tailscale/">Tailscale</a> 繼續可用。</p></div>- </details>- <details>- <summary>在同一個網絡裏,為甚麼找不到另一部電腦?</summary>- <div class="answer"><p>先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見<a href="lan/#faq">同一網絡教學</a>。</p></div>- </details>- <details>- <summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>- <div class="answer"><p>支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真實檔案,可以直接貼進檔案總管、微信、Office。</p><p>也支援 x64 與 ARM64 的 Linux 桌面:X11,或帶 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都已包含)。複製的檔案可以直接貼進檔案管理員。</p><p>暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監測剪貼簿,做不到複製後即時同步。</p></div>- </details>- <details>- <summary>為甚麼第一次開啟時系統會阻擋一下?</summary>- <div class="answer"><p>隔空貼仍未經 Apple 公證,Windows 版也仍未有程式碼簽署,兩者都需要每年付費的證書。</p><p>在 Mac 上,到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」;在 Windows 上,在「Windows 已保護您的電腦」提示裏按「其他資訊」,再按「仍要執行」。兩者都只需要做一次。</p></div>- </details>- <details>- <summary>大檔案怎樣處理?</summary>- <div class="answer"><p>預設 50 MB 以內的內容在你複製時就會推送到另一部電腦,那邊可以直接貼上;更大的檔案只同步一條記錄,需要時在複製記錄裏按「拉取到本機」再傳送。上限可以在設定裏調整。</p></div>- </details>- <details>- <summary>免費嗎?公司可以用嗎?</summary>- <div class="answer"><p>免費。隔空貼以 GNU AGPL-3.0 開源,個人和公司都可以免費使用和修改。分發它,或透過網絡提供修改過的版本時,需要以同樣的授權公開原始碼。</p></div>- </details>- <details>- <summary>官方中轉不限量嗎?</summary>- <div class="answer"><p>目前預設每機器額度組每日 100 MB 中轉流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。</p></div>- </details>- </div>- </div>- </section>-<section class="closing" aria-labelledby="closing-title"><div class="wrap"><h2 class="display" id="closing-title">兩部電腦,一個剪貼簿。</h2>diff --git a/docs/zh-hk/lan/index.html b/docs/zh-hk/lan/index.htmlindex 1793a90..01412fb 100644--- a/docs/zh-hk/lan/index.html+++ b/docs/zh-hk/lan/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server" aria-current="true">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/official/index.html b/docs/zh-hk/official/index.htmlindex 4ae0ece..6303d80 100644--- a/docs/zh-hk/official/index.html+++ b/docs/zh-hk/official/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/privacy/index.html b/docs/zh-hk/privacy/index.htmlindex be6b1dc..fc4fadb 100644--- a/docs/zh-hk/privacy/index.html+++ b/docs/zh-hk/privacy/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/security/index.html b/docs/zh-hk/security/index.htmlnew file mode 100644index 0000000..d241034--- /dev/null+++ b/docs/zh-hk/security/index.html@@ -0,0 +1,128 @@+<!doctype html>+<html lang="zh-HK">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>安全與私隱:端對端加密與配對核對 — 隔空貼</title>+ <meta name="description" content="裝置身分是一把金鑰,配對時由你核對指紋,之後的每條訊息都帶簽署,內容只有你的裝置能解密。">+ <link rel="canonical" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="安全與私隱:端對端加密與配對核對 — 隔空貼">+ <meta property="og:description" content="裝置身分是一把金鑰,配對時由你核對指紋,之後的每條訊息都帶簽署,內容只有你的裝置能解密。">+ <meta property="og:url" content="https://pasteferry.cc/zh-hk/security/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_HK">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳至主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server">連線方式</a>+ <a href="../../zh-hk/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="./" aria-current="page">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>+ <li><a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-hk/">隔空貼</a></p>+ <h1 class="display">伺服器看不到你複製了甚麼</h1>+ <p class="lede">裝置身分是一把金鑰,配對時由你核對指紋,之後的每條訊息都帶簽署,內容只有你的裝置能解密。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="cols">+ <ul class="points">+ <li><strong>伺服器不儲存帳戶,也不儲存內容。</strong>裝置身份是一把 Ed25519 密鑰,裝置 ID 由公鑰計算得出,伺服器不需要用戶資料表就能驗證身份。</li>+ <li><strong>配對時由你核對安全指紋。</strong>兩部電腦的螢幕會顯示同樣的兩行:雙方各自公鑰的指紋。伺服器有能力替換轉發中的公鑰,但替換之後兩邊螢幕就對不上,這一步就是防範中間人攻擊的關卡。</li>+ <li><strong>之後的每條訊息都帶簽名,</strong>伺服器無法冒充你的裝置。直連通道的證書在握手後還會再核對一次,不一致就立即中斷。</li>+ <li><strong>中轉也只是轉發密文。</strong>TURN 轉發的是加密後的封包,中轉憑證按裝置個別簽發,12 小時後失效。</li>+ <li><strong>區域網絡裏也一樣。</strong>裝置在區域網絡裏廣播的只是一個每天都會改變的匿名標識,看不出是誰的電腦,只有開啟「搜尋附近裝置」時才會帶上裝置名稱;配對同樣要核對指紋,之後的訊息同樣帶簽名。</li>+ </ul>+ <figure class="figure-card">+ <img src="../../assets/screenshots/zh-hk/card-verify-dark.png" width="1120" height="800" alt="配對時的「核對安全指紋」對話框,顯示 R8NF-2WTC-QL5J,要求與另一部電腦上顯示的完全一致">+ </figure>+ </div>+ <p class="more"><a href="../../zh-hk/privacy/">私隱說明 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術方案</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-hk/privacy/">私隱與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a>+ <a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a>+ <a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-hk/server/index.html b/docs/zh-hk/server/index.htmlindex 78e58e5..d8b8802 100644--- a/docs/zh-hk/server/index.html+++ b/docs/zh-hk/server/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server" aria-current="true">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/start/index.html b/docs/zh-hk/start/index.htmlindex 02448c8..1d16fd3 100644--- a/docs/zh-hk/start/index.html+++ b/docs/zh-hk/start/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="./" aria-current="page">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="#server">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="./" aria-current="page">快速開始</a>+ <a class="wide" href="#server">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="./" aria-current="page">快速開始</a></li>+ <li class="narrow"><a href="#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-hk/tailscale/index.html b/docs/zh-hk/tailscale/index.htmlindex 60d8178..63e8d30 100644--- a/docs/zh-hk/tailscale/index.html+++ b/docs/zh-hk/tailscale/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳至主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-hk/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-hk/start/">快速開始</a>- <a class="wide" href="../../zh-hk/#how">運作原理</a>- <a class="wide" href="../../zh-hk/#faq">常見問題</a>- <a class="mid" href="../../zh-hk/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-hk/features/">功能</a>+ <a class="mid" href="../../zh-hk/start/">快速開始</a>+ <a class="wide" href="../../zh-hk/start/#server" aria-current="true">連線方式</a><a href="../../zh-hk/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-hk/start/">快速開始</a></li>+ <li class="narrow"><a href="../../zh-hk/start/#server">連線方式</a></li>+ <li><a href="../../zh-hk/how/">運作原理</a></li>+ <li><a href="../../zh-hk/security/">安全與私隱</a></li>+ <li><a href="../../zh-hk/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/cloud/index.html b/docs/zh-tw/cloud/index.htmlindex 9a8404e..547aa8e 100644--- a/docs/zh-tw/cloud/index.html+++ b/docs/zh-tw/cloud/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server" aria-current="true">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/download/index.html b/docs/zh-tw/download/index.htmlindex 631998a..581112a 100644--- a/docs/zh-tw/download/index.html+++ b/docs/zh-tw/download/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a><a href="./" aria-current="page">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/faq/index.html b/docs/zh-tw/faq/index.htmlnew file mode 100644index 0000000..6f3754d--- /dev/null+++ b/docs/zh-tw/faq/index.html@@ -0,0 +1,270 @@+<!doctype html>+<html lang="zh-TW">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>常見問題 — 隔空貼</title>+ <meta name="description" content="安裝、連線、同步、費用。沒找到答案的話,歡迎回報。">+ <link rel="canonical" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/faq/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/faq/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/faq/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/faq/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/faq/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="常見問題 — 隔空貼">+ <meta property="og:description" content="安裝、連線、同步、費用。沒找到答案的話,歡迎回報。">+ <meta property="og:url" content="https://pasteferry.cc/zh-tw/faq/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_TW">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script type="application/ld+json">+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "開著 UU 遠端時,為什麼一直出現 .uuremote_ 檔案?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "UU 遠端會在系統剪貼簿裡寫入暫時的佔位檔案,舊版隔空貼把它們當成一般檔案,反覆記錄和轉送。1.3.2 在傳送和接收時會過濾已確認的佔位檔名,啟動時清除只含佔位檔案的記錄。正常的空檔案、隱藏檔案和大檔案不受這條規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都更新;其他軟體如果也會同步剪貼簿,仍可能產生一般內容的重複記錄。"+ }+ },+ {+ "@type": "Question",+ "name": "和 macOS 內建的「通用剪貼板」有什麼不同?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一個帳號。現在啟用官方服務就能跨網路同步,無需自行架設伺服器。優先直連,始終端到端加密。 如果你的兩台 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能就夠用了。"+ }+ },+ {+ "@type": "Question",+ "name": "伺服器會看到我複製的內容嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "伺服器無法解密複製內容:直連時內容不經過中繼伺服器;中繼時轉送端到端加密封包。官方服務保留必要裝置與用量統計,詳見隱私說明。原始碼可供稽核,不代表能證明私有正式環境的儲存行為。"+ }+ },+ {+ "@type": "Question",+ "name": "公司網路(雙線路、多出口)能直連嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "可以。這類網路依目的位址選擇出口,隔空貼會在同一個連接埠上向多台伺服器偵測,拿到每個出口的位址後一起傳給對方,由對方逐一嘗試。實測公司的 4 個出口與家用寬頻之間可以直連。對方是連接埠隨機分配的 NAT 時,仍會走中繼。"+ }+ },+ {+ "@type": "Question",+ "name": "一定要自己準備伺服器嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同網路時,在兩台電腦上啟用官方服務即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、自建伺服器與 Tailscale 繼續可用。"+ }+ },+ {+ "@type": "Question",+ "name": "家裡沒有公用 IP,能在家和公司之間同步嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "不需要。不同網路時,在兩台電腦上啟用官方服務即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、自建伺服器與 Tailscale 繼續可用。"+ }+ },+ {+ "@type": "Question",+ "name": "在同一個網路裡,為什麼找不到另一台?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見同一網路教學。"+ }+ },+ {+ "@type": "Question",+ "name": "支援 Windows 和 Linux 嗎?iPhone 呢?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真正的檔案,能直接貼進檔案總管、WeChat、Office。 也支援 x64 與 ARM64 的 Linux 桌面:X11,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有)。複製的檔案能直接貼進檔案管理員。 暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監聽剪貼簿,做不到複製後立即同步。"+ }+ },+ {+ "@type": "Question",+ "name": "為什麼第一次打開時系統會擋一下?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "隔空貼還沒有經過 Apple 公證,Windows 版也還沒有程式碼簽章,兩者都需要每年付費購買的憑證。 在 Mac 上,到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」;在 Windows 上,在「Windows 已保護您的電腦」提示裡點「其他資訊」,再點「仍要執行」。都只需要這一次。"+ }+ },+ {+ "@type": "Question",+ "name": "大檔案怎麼處理?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "預設 50 MB 以內的內容,在你複製時就推送到另一台電腦,那邊可以直接貼上;更大的檔案只同步一筆記錄,需要時在複製記錄裡點「拉取到本機」再傳。上限可以在設定裡調整。"+ }+ },+ {+ "@type": "Question",+ "name": "免費嗎?公司能用嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "免費。隔空貼以 GNU AGPL-3.0 授權開源,個人和公司都可以免費使用和修改。散布它,或透過網路提供修改過的版本時,需要以同樣的授權公開原始碼。"+ }+ },+ {+ "@type": "Question",+ "name": "官方中繼不限量嗎?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "目前預設每機器額度組每日 100 MB 中繼流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。"+ }+ }+ ]+}+ </script>+</head>+<body>+ <a class="skip" href="#main">跳到主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="./" aria-current="page">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-tw/">隔空貼</a></p>+ <h1 class="display">常見問題</h1>+ <p class="lede">安裝、連線、同步、費用。沒找到答案的話,歡迎回報。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="faq">+ <details>+ <summary>開著 UU 遠端時,為什麼一直出現 .uuremote_ 檔案?</summary>+ <div class="answer"><p>UU 遠端會在系統剪貼簿裡寫入暫時的佔位檔案,舊版隔空貼把它們當成一般檔案,反覆記錄和轉送。1.3.2 在傳送和接收時會過濾已確認的佔位檔名,啟動時清除只含佔位檔案的記錄。正常的空檔案、隱藏檔案和大檔案不受這條規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都更新;其他軟體如果也會同步剪貼簿,仍可能產生一般內容的重複記錄。</p></div>+ </details>+ <details>+ <summary>和 macOS 內建的「通用剪貼板」有什麼不同?</summary>+ <div class="answer"><p>Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一個帳號。現在啟用官方服務就能跨網路同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><p>如果你的兩台 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能就夠用了。</p></div>+ </details>+ <details>+ <summary>伺服器會看到我複製的內容嗎?</summary>+ <div class="answer"><p>伺服器無法解密複製內容:直連時內容不經過中繼伺服器;中繼時轉送端到端加密封包。官方服務保留必要裝置與用量統計,詳見隱私說明。原始碼可供稽核,不代表能證明私有正式環境的儲存行為。</p></div>+ </details>+ <details>+ <summary>公司網路(雙線路、多出口)能直連嗎?</summary>+ <div class="answer"><p>可以。這類網路依目的位址選擇出口,隔空貼會在同一個連接埠上向多台伺服器偵測,拿到每個出口的位址後一起傳給對方,由對方逐一嘗試。實測公司的 4 個出口與家用寬頻之間可以直連。對方是連接埠隨機分配的 NAT 時,仍會走中繼。</p></div>+ </details>+ <details>+ <summary>一定要自己準備伺服器嗎?</summary>+ <div class="answer"><p>不需要。不同網路時,在兩台電腦上啟用<a href="../../zh-tw/official/">官方服務</a>即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、<a href="../../zh-tw/cloud/">自建伺服器</a>與 <a href="../../zh-tw/tailscale/">Tailscale</a> 繼續可用。</p></div>+ </details>+ <details>+ <summary>家裡沒有公用 IP,能在家和公司之間同步嗎?</summary>+ <div class="answer"><p>不需要。不同網路時,在兩台電腦上啟用<a href="../../zh-tw/official/">官方服務</a>即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、<a href="../../zh-tw/cloud/">自建伺服器</a>與 <a href="../../zh-tw/tailscale/">Tailscale</a> 繼續可用。</p></div>+ </details>+ <details>+ <summary>在同一個網路裡,為什麼找不到另一台?</summary>+ <div class="answer"><p>先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見<a href="../../zh-tw/lan/#faq">同一網路教學</a>。</p></div>+ </details>+ <details>+ <summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>+ <div class="answer"><p>支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真正的檔案,能直接貼進檔案總管、WeChat、Office。</p><p>也支援 x64 與 ARM64 的 Linux 桌面:X11,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有)。複製的檔案能直接貼進檔案管理員。</p><p>暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監聽剪貼簿,做不到複製後立即同步。</p></div>+ </details>+ <details>+ <summary>為什麼第一次打開時系統會擋一下?</summary>+ <div class="answer"><p>隔空貼還沒有經過 Apple 公證,Windows 版也還沒有程式碼簽章,兩者都需要每年付費購買的憑證。</p><p>在 Mac 上,到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」;在 Windows 上,在「Windows 已保護您的電腦」提示裡點「其他資訊」,再點「仍要執行」。都只需要這一次。</p></div>+ </details>+ <details>+ <summary>大檔案怎麼處理?</summary>+ <div class="answer"><p>預設 50 MB 以內的內容,在你複製時就推送到另一台電腦,那邊可以直接貼上;更大的檔案只同步一筆記錄,需要時在複製記錄裡點「拉取到本機」再傳。上限可以在設定裡調整。</p></div>+ </details>+ <details>+ <summary>免費嗎?公司能用嗎?</summary>+ <div class="answer"><p>免費。隔空貼以 GNU AGPL-3.0 授權開源,個人和公司都可以免費使用和修改。散布它,或透過網路提供修改過的版本時,需要以同樣的授權公開原始碼。</p></div>+ </details>+ <details>+ <summary>官方中繼不限量嗎?</summary>+ <div class="answer"><p>目前預設每機器額度組每日 100 MB 中繼流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。</p></div>+ </details>+ </div>+ <p class="more"><a href="https://github.com/baiyuze/pasteferry/issues">回報問題 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 授權開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術說明</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-tw/privacy/">隱私與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../faq/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/faq/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a>+ <a href="../../zh-hk/faq/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/faq/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/faq/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-tw/features/index.html b/docs/zh-tw/features/index.htmlnew file mode 100644index 0000000..e19ed0d--- /dev/null+++ b/docs/zh-tw/features/index.html@@ -0,0 +1,300 @@+<!doctype html>+<html lang="zh-TW">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼</title>+ <meta name="description" content="隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一台直接貼上。按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。">+ <link rel="canonical" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/features/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/features/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/features/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/features/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/features/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼">+ <meta property="og:description" content="隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一台直接貼上。按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。">+ <meta property="og:url" content="https://pasteferry.cc/zh-tw/features/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="zh_TW">+ <meta property="og:locale:alternate" content="zh_CN">+ <meta property="og:locale:alternate" content="zh_HK">+ <meta property="og:locale:alternate" content="en_US">+ <meta property="og:locale:alternate" content="ja_JP">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <link rel="stylesheet" href="../../assets/features.css">+</head>+<body class="features">+ <a class="skip" href="#main">跳到主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="./" aria-current="page">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">隔空貼的功能</p>+ <h1 class="display">複製貼上,<br>本該這麼順手。</h1>+ <p class="lede">Mac、Windows、Linux 之間同步剪貼簿,複製過的隨叫隨到。</p>+ <div class="cta">+ <a class="button" href="../../zh-tw/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ <a class="button quiet" href="../../zh-tw/tour/"><span aria-hidden="true">▶</span> 看完整示範</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="../../assets/screenshots/zh-tw/history-dark.png" width="2112" height="1472" alt="隔空貼的複製記錄:側邊欄有複製記錄、收藏、裝置、設定,列表裡是來自不同電腦的文字、圖片、檔案和連結">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">在這台複製,<br>到那台貼上。</h2>+ <p class="f-intro">按下 <span class="k-mac">⌘C</span><span class="k-pc">Ctrl+C</span>,內容就同步到你的其他電腦,到那邊按 <span class="k-mac">⌘V</span><span class="k-pc">Ctrl+V</span> 貼上。不用同一個帳號,Mac、Windows、Linux 隨意搭配。</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>MacBook</b><kbd>⌘C</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Windows</b><kbd>Ctrl+V</kbd></div>+ <div class="dev"><div class="scr"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span></div><b>Linux</b><kbd>Ctrl+V</kbd></div>+ </div>+ <ul class="facts">+ <li><h3>文字、圖片、檔案、資料夾</h3><p>帶格式的文字貼到只認純文字的地方,也不會冒出標籤。</p></li>+ <li><h3>50 MB 以內,複製時就傳好</h3><p>更大的先同步一筆記錄,需要時點一下再取。上限可以調。</p></li>+ <li><h3>對方離線也不會漏</h3><p>這段期間複製的,連上後補進對方的複製記錄。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近複製的都在手邊。</h2>+ <p class="f-intro">不用切到隔空貼,也不用翻聊天記錄。在任何 App 裡按一下快速鍵,選一筆,它就貼到你剛才的游標處。</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ <div class="qp-stage" role="img" aria-label="示範:寫郵件時按 ⌥V,彈出快速貼上視窗;輸入「發票」搜到發票抬頭,按 Enter,它被貼進郵件內文" data-typing="[["ㄈ", true], ["ㄈㄚ", true], ["ㄈㄚ ㄆ", true], ["ㄈㄚ ㄆㄧㄠˋ", true], ["發票", false]]">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>新郵件</span></div>+ <div class="mail-field"><span>收件人:</span><b>王經理</b></div>+ <div class="mail-field"><span>主旨:</span><b>發票資訊</b></div>+ <div class="mail-body"><p>王經理您好,</p><p>我們的發票資訊如下:</p><p class="mail-line"><span class="pasted">發票抬頭:隔空科技股份有限公司 統一編號 12345678</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true"><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd></div>+ <div class="picker">+ <div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">發票</span><i class="caret"></i><span class="ph">搜尋</span></span></div>+ <div class="qp-tabs"><span class="on">全部</span><span>文字</span><span>連結</span><span>圖片</span><span>檔案</span><span>收藏</span></div>+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all">1</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議改到週四下午 3 點,地點不變</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all">2</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all">3</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌機 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all">4</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描檔.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all">5</span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票抬頭:隔空科技股份有限公司 統一編號 12345678</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all">6</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all">7</span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票寄到財務部,備註訂單編號</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all">8</span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>+ <div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>貼上</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>純文字</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只複製</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>關閉</span></div>+ </div>+ </div>+ <ol class="qp-steps">+ <li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何 App 裡都行。視窗出現在螢幕中間,選完自動回到原來的 App。</p></li>+ <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔名都能搜。不搜的時候,前 9 筆按數字直接選。</p></li>+ <li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就貼好了</h3><p>內容直接貼到剛才的游標處。<span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 貼上純文字,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只複製不貼上。</p></li>+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">快速鍵可以在設定裡更換或關閉。Mac 上直接貼上需要授予「輔助使用」權限,沒授權時選取的內容放進剪貼簿,再由你按 ⌘V;Linux 的 Wayland 桌面上也是選取後按 Ctrl+V。</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 class="f-h2" id="fav-title">常用的,<br>收藏起來。</h2>+ <p class="f-intro">發票抬頭、地址、常用回覆,點一下星號就另存一份。收藏不會過期,清空複製記錄也還在。</p>+ <figure class="f-shot" data-reveal>+ <img src="../../assets/screenshots/zh-tw/favorites-dark.png" width="2112" height="1472" loading="lazy" alt="收藏頁:發票抬頭、常用回覆、下載連結、公司登記證明.pdf 等五筆收藏,每筆右邊是藍色的星號">+ </figure>+ <ul class="facts">+ <li><h3>不會被清除</h3><p>複製記錄到期自動清除,收藏一直留著。</p></li>+ <li><h3>另存一份</h3><p>原檔案之後改動或刪除,都不影響收藏裡的那份。</p></li>+ <li><h3>快速貼上視窗裡也有</h3><p>切到「收藏」分頁,或者按 <span class="k-mac">⌘D</span><span class="k-pc">Ctrl+D</span> 收藏選取的那一筆。</p></li>+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">細節裡,<br>也替你想好了。</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>連結單獨一欄 <span class="new">新</span></h3>+ <p>複製記錄按類型篩選:文字、連結、圖片、檔案、收藏,一點就分開。</p>+ <div class="mini" aria-hidden="true"><div class="seg"><span data-tab="all" class="on">全部</span><span data-tab="text">文字</span><span data-tab="link">連結</span><span data-tab="image">圖片</span><span data-tab="file">檔案</span><span data-tab="fav">收藏</span></div><ul class="mini-rows"><li data-kind="text"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議改到週四下午 3 點</span></li><li data-kind="link"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span></li><li data-kind="image"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片 · 2.4 MB</span></li><li data-kind="file"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span class="t">季度報告-定稿.key</span></li><li data-kind="link" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://pasteferry.cc/download/</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li><li data-kind="text" data-fav><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">發票抬頭:隔空科技股份有限公司</span><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg></li></ul></div>+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>停一下,就看到全文 <span class="new">新</span></h3>+ <p>滑鼠在一筆上停半秒,彈出完整的文字、放大的圖片或全部檔名,不用點開。</p>+ <div class="crop"><img src="../../assets/screenshots/zh-tw/hover-dark.png" width="2112" height="1472" loading="lazy" alt="滑鼠停在一筆會議記錄上,彈出的提示框顯示它的全文:負責人、發布時段和監控要求"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>三天裡複製的,搜得到</h3>+ <p>按文字內容或檔名搜尋,點一下就放回剪貼簿。記錄預設保留 3 天,最長可以留 30 天。</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合約">合約</span><i class="caret"></i></div>+ <ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合約掃描檔.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合約第 3 條改成按季付款</span></li></ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>大檔案,用時再取</h3>+ <p>超過 50 MB 的先只同步一筆記錄,點「接收」才開始傳,不佔你的頻寬。</p>+ <div class="mini big" aria-hidden="true">+ <svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><div><b>發表會示範錄影.mov</b><span>來自 Mac mini · 1.3 GB</span><i class="bar"><i></i></i></div>+ <span class="receive">接收</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>整個資料夾也行</h3>+ <p>複製一個資料夾,到另一台貼上的就是同樣的資料夾,結構不變。</p>+ <ul class="mini tree" aria-hidden="true">+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>design-assets</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>logo.svg</li>+ <li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg>[email protected]</li>+ <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>檔名不打架</h3>+ <p>Mac 上能用、Windows 上不合法的字元,收到時換成全形字元,檔名照樣看得懂。</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>會議記錄 10:30?.md</code></div>+ <div><span>Windows</span><code>會議記錄 10:30?.md</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">家裡和公司,<br>也能直連。</h2>+ <p class="f-intro">同一網路裡裝好就能配對。不在同一網路時,開啟官方服務就行,不用自己架伺服器。兩台電腦優先打洞直連,打不通才加密中繼。</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="示意:家裡和公司兩個網路裡的兩台電腦經官方服務找到彼此,然後直接相連">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">官方服務</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">家裡</text>+ <text class="n-label" x="756" y="164" text-anchor="end">公司</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">直連 · 端對端加密</text>+ </svg>+ </figure>+ <ul class="facts">+ <li><h3>同一網路</h3><p>不需要伺服器,輸入配對碼就行。</p></li>+ <li><h3>跨網路</h3><p>官方服務、自架伺服器或 Tailscale,任選一種。</p></li>+ <li><h3>端對端加密</h3><p>配對時核對安全指紋,伺服器看不到內容。</p></li>+ </ul>+ <p class="more"><a href="../../zh-tw/start/#server">選擇連線方式 →</a><a href="../../zh-tw/how/">運作原理 →</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">幾個數字。</h2>+ <dl class="numbers" data-reveal>+ <div><dt><b>3</b> <span>個系統</span></dt><dd>macOS、Windows、Linux</dd></div>+ <div><dt><b>50 MB</b> <span>以內</span></dt><dd>複製的同時就傳好</dd></div>+ <div><dt><b>≈330 ms</b></dt><dd>區域網路直連傳 20 MB 檔案</dd></div>+ <div><dt><b>0</b> <span>個帳號</span></dt><dd>不用註冊,配對即用</dd></div>+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">現在就試試。</h2>+ <div class="cta">+ <a class="button" href="../../zh-tw/download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ </div>+ <p class="note">版本 2.3.0,免費開源。macOS 13 以上;Windows 10、11;Linux(x64 與 ARM64)。</p>+ <a class="start-link" href="../../zh-tw/start/">第一次用?看快速入門,三個步驟就設定好 →</a>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 授權開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術說明</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-tw/privacy/">隱私與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../features/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/features/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a>+ <a href="../../zh-hk/features/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/features/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/features/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script src="../../assets/features.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-tw/how/index.html b/docs/zh-tw/how/index.htmlnew file mode 100644index 0000000..cefcaf5--- /dev/null+++ b/docs/zh-tw/how/index.html@@ -0,0 +1,262 @@+<!doctype html>+<html lang="zh-TW">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>運作原理:直連、多出口探測與出問題時的處理 — 隔空貼</title>+ <meta name="description" content="按下複製之後發生了什麼,兩台電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。">+ <link rel="canonical" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/how/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/how/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/how/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/how/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/how/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="運作原理:直連、多出口探測與出問題時的處理 — 隔空貼">+ <meta property="og:description" content="按下複製之後發生了什麼,兩台電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。">+ <meta property="og:url" content="https://pasteferry.cc/zh-tw/how/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_TW">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳到主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="./" aria-current="page">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-tw/">隔空貼</a></p>+ <h1 class="display">運作原理</h1>+ <p class="lede">按下複製之後發生了什麼,兩台電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。</p>+ </div>+ </section>++ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">按下複製之後</h2>+ <p class="intro">文字、圖片、檔案、整個資料夾,都走同一條路。</p>+ <ol class="flow">+ <li><h3>偵測</h3><p>在 Mac 上,背景服務每隔一小段時間查看一次剪貼簿的變更計數,只看計數和類型,不需要授權,也不會跳出系統提示;在 Windows 上,複製的那一刻系統就會通知它。</p></li>+ <li><h3>傳輸</h3><p>文字隨訊息一起送出;50 MB 以內的圖片和檔案打包成串流立即推送;更大的檔案只送出一筆記錄,等你需要時再傳。</p></li>+ <li><h3>貼上</h3><p>另一台電腦先把內容存到本機,再寫入剪貼簿。按下 ⌘V 或 Ctrl+V 貼上的,就是本機上真正的檔案。</p></li>+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title">+ <div class="wrap">+ <h2 id="how-title">隔空貼的連線方式</h2>+ <p class="intro">同一網路裡,裝置不需伺服器就能找到彼此;跨網路時,官方服務或自建伺服器協助交換連線資訊。優先打洞直連,失敗後才使用加密中繼。下圖展示通用的信令與中繼結構。</p>+ <figure class="diagram">+ <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">+ <title id="diagram-title">隔空貼的連線方式</title>+ <desc id="diagram-desc">電腦 A 與電腦 B(Mac 或 Windows)之間是 WebRTC 直連;兩台電腦都透過信令連線到信令與中繼服務;直連失敗時,資料經伺服器的 TURN 中繼。</desc>+ <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>+ <text class="d-title" x="480" y="64" text-anchor="middle">信令與中繼服務</text>+ <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中繼</text>+ <path class="d-sig" d="M140 210V58H360"/>+ <path class="d-sig" d="M820 210V58H600"/>+ <path class="d-relay" d="M196 210V100H360"/>+ <path class="d-relay" d="M764 210V100H600"/>+ <text class="d-note" x="210" y="50">信令:交換連線資訊</text>+ <text class="d-note" x="210" y="128">中繼:只在直連打不通時</text>+ <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>+ <text class="d-sub" x="160" y="290" text-anchor="middle">在這裡複製</text>+ <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>+ <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>+ <text class="d-sub" x="800" y="290" text-anchor="middle">在這裡貼上</text>+ <path class="d-direct" d="M280 270H680"/>+ <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直連,DTLS 加密</text>+ <text class="d-note" x="480" y="298" text-anchor="middle">資料只在兩台電腦之間傳輸</text>+ <g class="d-legend" transform="translate(40 372)">+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">資料(直連)</text>+ <path class="d-relay" d="M210 0H238"/><text x="248" y="5">資料(中繼,備用)</text>+ <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>+ </g>+ </svg>+ <ul class="points diagram-text">+ <li><strong>WebRTC 直連,DTLS 加密</strong> 資料只在兩台電腦之間傳輸</li>+ <li><strong>信令與中繼服務</strong> 信令、STUN、TURN 中繼</li>+ <li>中繼:只在直連打不通時</li>+ </ul>+ </figure>+ </div>+ </section>++ <section class="section" id="multi-uplink" aria-labelledby="multi-title">+ <div class="wrap">+ <h2 id="multi-title">公司網路也能直連</h2>+ <p class="intro">公司雙線路、電信業者位址池這類網路有多個出口,會依目的位址決定走哪一個。只偵測一次,只會知道其中一個出口,結果只能經伺服器中繼。隔空貼會偵測每個出口,把位址全部告訴對方。</p>+ <div class="cols">+ <div>+ <h3>做了什麼</h3>+ <ul class="points">+ <li><strong>共用一個連接埠。</strong>所有連線都從同一個本機 UDP 連接埠收發,向不同伺服器查到的位址才對得上。</li>+ <li><strong>偵測每個出口。</strong>在這個連接埠上同時詢問 7 台 IP 分散的伺服器,網路有幾個出口就拿到幾個位址;遭 DNS 汙染的位址會先過濾掉。</li>+ <li><strong>全部告訴對方。</strong>對方逐一嘗試,與實際出口相符的那一個就能打通。</li>+ <li><strong>記住見過的出口。</strong>某次漏掉的出口,如果它不會改變連接埠,就用「出口 IP + 本機連接埠」推算補上。</li>+ <li><strong>講好誰先送封包。</strong>有些路由器收到對方先到的封包,會把連接埠佔住。一方先公布出口位址,另一方先往那邊送封包,再公布自己的;重試時兩種順序輪流使用。</li>+ <li><strong>閒置時重試直連。</strong>直連失敗且中繼可用時,先透過中繼保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中繼。</li>+ </ul>+ </div>+ <div>+ <h3>用真實的網路拓撲驗證</h3>+ <p class="small">NAT 打洞實驗室用 Linux 網路命名空間與 iptables 搭出這些拓撲,用隔空貼真正的連線程式碼各跑一遍,每次提交程式碼都會自動執行。</p>+ <div class="table-scroll">+ <table>+ <thead><tr><th scope="col">情境</th><th scope="col">結果</th></tr></thead>+ <tbody>+ <tr><td>單一出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>兩個出口,舊版本(對照)</td><td>中繼</td></tr>+ <tr><td>兩個出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>四個出口 ↔ 家用路由器</td><td>直連</td></tr>+ <tr><td>兩個出口,第二條線路沒偵測到,沒有歷史記錄</td><td>中繼</td></tr>+ <tr><td>兩個出口,第二條線路沒偵測到,有歷史記錄</td><td>直連</td></tr>+ <tr><td>兩個出口 ↔ 兩個出口</td><td>直連</td></tr>+ <tr><td>兩個出口 ↔ 連接埠隨機分配的 NAT</td><td>中繼</td></tr>+ <tr><td>一開始打不通,之後網路恢復</td><td>先中繼,隨後直連</td></tr>+ <tr><td>公司路由器會為外來的封包佔住連接埠</td><td>直連</td></tr>+ <tr><td>家用路由器會為外來的封包佔住連接埠</td><td>先中繼,重試一次後直連</td></tr>+ <tr><td>沒有伺服器,同一個網段,靠 mDNS 探索</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩個網段,一邊記得對方位址</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩台都擋外來連線,都記得位址</td><td>直連</td></tr>+ <tr><td>沒有伺服器,兩台都擋外來連線,只有一邊記得</td><td>連不上(已知限制)</td></tr>+ <tr><td>沒有伺服器,兩個網段之間被隔離</td><td>連不上</td></tr>+ </tbody>+ </table>+ </div>+ <p class="small">實測:一台在 4 個出口的公司網路裡的 Mac 與家裡的 Mac,改良前只能中繼,速度被伺服器頻寬限制在 0.6 MB/s;改良後可以直連,連上伺服器後約 3 秒就建立連線。</p>+ <p class="small">量測過程、設計取捨與踩過的坑,請見<a href="../../design/nat-traversal.html">技術說明</a>。</p>+ </div>+ </div>+ </div>+ </section>++ <section class="section" id="fallbacks" aria-labelledby="fallback-title">+ <div class="wrap">+ <h2 id="fallback-title">出問題的時候會怎樣</h2>+ <p class="intro">每個人的網路環境都不一樣。下面這些情況都考慮過,也都有對應的測試。</p>+ <dl class="fallbacks">+ <div><dt>在同一個網路裡找不到對方</dt><dd>不同網段、訪客網路、開了 AP 隔離的 Wi‑Fi,都會擋住區域網路探索。配對時輸入對方配對碼下方顯示的位址就行;之後位址會被記住,兩邊都換了位址時,在裝置清單裡幫它重新輸入一次。</dd></div>+ <div><dt>系統擋住區域網路連線</dt><dd>從 macOS 15 起,背景服務要連線區域網路裡的裝置,需要你允許;Windows 第一次執行時,防火牆會跳出詢問。沒有允許時,App 會提示,並提供直達設定的按鈕。</dd></div>+ <div><dt>兩台電腦打不通直連</dt><dd>官方模式在直連失敗後,依目前額度申請中繼;自建模式使用自己的 TURN 中繼。兩種方式的內容均保持端到端加密。</dd></div>+ <div><dt>連不上公共 STUN 伺服器</dt><dd>在中國大陸連公共 STUN 時通時斷。伺服器內建 STUN,用戶端會優先使用它。</dd></div>+ <div><dt>從中繼切回直連</dt><dd>直連失敗且中繼可用時,先透過中繼保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中繼。</dd></div>+ <div><dt>對方睡眠、斷線或重新開機</dt><dd>連線悄悄斷了也能察覺,會立即關閉並重新連線。這段期間複製的內容會先記下來,連上後補送到對方的複製記錄裡,但不會覆蓋對方當下剪貼簿裡的內容。</dd></div>+ <div><dt>伺服器斷線</dt><dd>自動重新連線,間隔從 1 秒開始加倍、最長 30 秒,並加上隨機抖動,避免一大群裝置同時重連。同一個網路裡的裝置不受影響,照常同步。</dd></div>+ <div><dt>檔案太大</dt><dd>超過上限的只同步一筆記錄,需要時再拉取。拉取時如果原始檔案已經被刪除,會明確告訴你,而不是莫名其妙地失敗。</dd></div>+ <div><dt>貼到只接受純文字的地方</dt><dd>從網頁複製的帶格式文字,會同時寫入 HTML 和純文字兩份,貼到哪裡都不會冒出標籤。</dd></div>+ <div><dt>檔名在 Windows 上不合法</dt><dd>Mac 上可以用的冒號、問號等字元,收到時會換成對應的全形字元,檔名照樣看得懂;只差在大小寫的兩個檔案也不會互相覆蓋。</dd></div>+ <div><dt>複製的是密碼</dt><dd>在 Windows 上,密碼管理工具複製的內容會帶一個「不要記錄」的標記,隔空貼看到就跳過:不同步,也不會進入複製記錄。</dd></div>+ <div><dt>還沒授權讀取剪貼簿</dt><dd>不去讀取內容,否則背景程序會卡在一個看不見的系統對話框上。App 裡會提示你去授權,並提供直達設定的按鈕。</dd></div>+ <div><dt>背景服務當掉</dt><dd>Mac 上由系統的 launchd、Windows 上由隔空貼內建的守護程式自動重新啟動,每次至少間隔 10 秒,不會無限重啟。</dd></div>+ <div><dt>更新了 App,或把它搬到別的位置</dt><dd>打開 App 時會自動修正登入項目,並把背景服務重新啟動到新版本。</dd></div>+ </dl>+ </div>+ </section>++ <section class="section" id="specs" aria-labelledby="specs-title">+ <div class="wrap">+ <h2 id="specs-title">技術規格</h2>+ <div class="table-scroll">+ <table class="specs">+ <tbody>+ <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>發布</td></tr>+ <tr><th scope="row">Mac 用戶端</th><td>macOS 13 Ventura 以上;Apple 晶片與 Intel 晶片各有一個安裝檔,約 25 MB,不需要 Rosetta;也有兩種晶片通用的版本,約 47 MB</td></tr>+ <tr><th scope="row">Windows 用戶端</th><td>Windows 10 與 Windows 11,x64;只為目前使用者安裝,不需要系統管理員權限;安裝檔約 23 MB</td></tr>+ <tr><th scope="row">Linux 用戶端</th><td>x64 與 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他發行版),約 22 MB;需要 X11 桌面,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有);GTK 3</td></tr>+ <tr><th scope="row">伺服器</th><td>僅自建時需要部署;使用官方服務不需自備伺服器。自建支援 Linux x86_64/ARM64、macOS 與 Windows 10/11 x64。</td></tr>+ <tr><th scope="row">介面語言</th><td>簡體中文、繁體中文(台灣、香港)、English、日本語,預設跟隨系統,可在設定裡切換</td></tr>+ <tr><th scope="row">同步的內容</th><td>純文字、帶格式的文字、圖片與螢幕截圖、檔案、資料夾,可依類型個別關閉</td></tr>+ <tr><th scope="row">傳輸</th><td>WebRTC 資料通道,優先直連,打不通時經 TURN 中繼;同一個網路裡透過 mDNS 探索、UDP 8788 交換連線資訊;多出口網路逐一偵測每個出口;檔案以 tar + zstd 串流打包</td></tr>+ <tr><th scope="row">加密與身分</th><td>DTLS 端對端加密;裝置身分為 Ed25519 金鑰;信令訊息逐則簽章</td></tr>+ <tr><th scope="row">配對</th><td>6 碼配對碼,5 分鐘內有效,字元集去掉了 0/O、1/I 等容易混淆的字元;配對時人工核對安全指紋</td></tr>+ <tr><th scope="row">自動同步上限</th><td>預設 50 MB,可在 1 MB 到 1 GB 之間調整</td></tr>+ <tr><th scope="row">記錄保留</th><td>預設 3 天,可在 1 小時到 30 天之間調整,到期自動清除</td></tr>+ <tr><th scope="row">實測速度</th><td>區域網路直連傳輸 20 MB 檔案約 330 毫秒,檢查碼一致</td></tr>+ <tr><th scope="row">技術堆疊</th><td>背景服務與伺服器用 Go(Windows 上以純 Go 呼叫 Win32,Linux 上以純 Go 走 X11 協定),介面用 Flutter(三個系統共用一套程式碼),訊息定義用 Protocol Buffers</td></tr>+ <tr><th scope="row">授權</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 授權開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術說明</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-tw/privacy/">隱私與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../how/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/how/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a>+ <a href="../../zh-hk/how/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/how/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/how/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.htmlindex f93ba0e..90b7398 100644--- a/docs/zh-tw/index.html+++ b/docs/zh-tw/index.html@@ -40,6 +40,14 @@<link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../assets/apple-touch-icon.png"><link rel="stylesheet" href="../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+ <script>+ (function () {+ var moved = {"how": "how/", "multi-uplink": "how/#multi-uplink", "install": "download/", "faq": "faq/", "security": "security/", "specs": "how/#specs"};+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script><script type="application/ld+json">{"@context": "https://schema.org",@@ -84,107 +92,6 @@"name": "baiyuze","url": "https://github.com/baiyuze"}- },- {- "@type": "FAQPage",- "mainEntity": [- {- "@type": "Question",- "name": "開著 UU 遠端時,為什麼一直出現 .uuremote_ 檔案?",- "acceptedAnswer": {- "@type": "Answer",- "text": "UU 遠端會在系統剪貼簿裡寫入暫時的佔位檔案,舊版隔空貼把它們當成一般檔案,反覆記錄和轉送。1.3.2 在傳送和接收時會過濾已確認的佔位檔名,啟動時清除只含佔位檔案的記錄。正常的空檔案、隱藏檔案和大檔案不受這條規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都更新;其他軟體如果也會同步剪貼簿,仍可能產生一般內容的重複記錄。"- }- },- {- "@type": "Question",- "name": "和 macOS 內建的「通用剪貼板」有什麼不同?",- "acceptedAnswer": {- "@type": "Answer",- "text": "Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一個帳號。現在啟用官方服務就能跨網路同步,無需自行架設伺服器。優先直連,始終端到端加密。 如果你的兩台 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能就夠用了。"- }- },- {- "@type": "Question",- "name": "伺服器會看到我複製的內容嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "伺服器無法解密複製內容:直連時內容不經過中繼伺服器;中繼時轉送端到端加密封包。官方服務保留必要裝置與用量統計,詳見隱私說明。原始碼可供稽核,不代表能證明私有正式環境的儲存行為。"- }- },- {- "@type": "Question",- "name": "公司網路(雙線路、多出口)能直連嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "可以。這類網路依目的位址選擇出口,隔空貼會在同一個連接埠上向多台伺服器偵測,拿到每個出口的位址後一起傳給對方,由對方逐一嘗試。實測公司的 4 個出口與家用寬頻之間可以直連。對方是連接埠隨機分配的 NAT 時,仍會走中繼。"- }- },- {- "@type": "Question",- "name": "一定要自己準備伺服器嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同網路時,在兩台電腦上啟用官方服務即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、自建伺服器與 Tailscale 繼續可用。"- }- },- {- "@type": "Question",- "name": "家裡沒有公用 IP,能在家和公司之間同步嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "不需要。不同網路時,在兩台電腦上啟用官方服務即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、自建伺服器與 Tailscale 繼續可用。"- }- },- {- "@type": "Question",- "name": "在同一個網路裡,為什麼找不到另一台?",- "acceptedAnswer": {- "@type": "Answer",- "text": "先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見同一網路教學。"- }- },- {- "@type": "Question",- "name": "支援 Windows 和 Linux 嗎?iPhone 呢?",- "acceptedAnswer": {- "@type": "Answer",- "text": "支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真正的檔案,能直接貼進檔案總管、WeChat、Office。 也支援 x64 與 ARM64 的 Linux 桌面:X11,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有)。複製的檔案能直接貼進檔案管理員。 暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監聽剪貼簿,做不到複製後立即同步。"- }- },- {- "@type": "Question",- "name": "為什麼第一次打開時系統會擋一下?",- "acceptedAnswer": {- "@type": "Answer",- "text": "隔空貼還沒有經過 Apple 公證,Windows 版也還沒有程式碼簽章,兩者都需要每年付費購買的憑證。 在 Mac 上,到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」;在 Windows 上,在「Windows 已保護您的電腦」提示裡點「其他資訊」,再點「仍要執行」。都只需要這一次。"- }- },- {- "@type": "Question",- "name": "大檔案怎麼處理?",- "acceptedAnswer": {- "@type": "Answer",- "text": "預設 50 MB 以內的內容,在你複製時就推送到另一台電腦,那邊可以直接貼上;更大的檔案只同步一筆記錄,需要時在複製記錄裡點「拉取到本機」再傳。上限可以在設定裡調整。"- }- },- {- "@type": "Question",- "name": "免費嗎?公司能用嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "免費。隔空貼以 GNU AGPL-3.0 授權開源,個人和公司都可以免費使用和修改。散布它,或透過網路提供修改過的版本時,需要以同樣的授權公開原始碼。"- }- },- {- "@type": "Question",- "name": "官方中繼不限量嗎?",- "acceptedAnswer": {- "@type": "Answer",- "text": "目前預設每機器額度組每日 100 MB 中繼流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。"- }- }- ]}]}@@ -197,12 +104,23 @@<div class="wrap"><a class="brand" href="./" aria-label="隔空貼首頁"><img src="../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="start/">快速入門</a>- <a class="wide" href="#how">運作原理</a>- <a class="wide" href="#faq">常見問題</a>- <a class="mid" href="start/#server">連線方式</a>+ <a href="features/">功能</a>+ <a class="mid" href="start/">快速入門</a>+ <a class="wide" href="start/#server">連線方式</a><a href="download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="start/">快速入門</a></li>+ <li class="narrow"><a href="start/#server">連線方式</a></li>+ <li><a href="how/">運作原理</a></li>+ <li><a href="security/">安全與隱私</a></li>+ <li><a href="faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>@@ -220,7 +138,7 @@<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="official/">2.1 新增:跨網路同步,無需自建伺服器 →</a>+ <a class="release-note" href="features/#quick-paste">2.4 新功能:按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 快速貼上 →</a><h1 class="display">在這台電腦複製,<br>到那台電腦貼上。</h1><p class="lede">Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一個帳號。現在啟用官方服務就能跨網路同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><div class="cta">@@ -256,6 +174,82 @@</div></section>+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">2.4 新功能</span></p>+ <h2 id="qp-title">按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span>,<br>最近複製的都在手邊。</h2>+ <p class="intro">在任何 App 裡按一下,複製記錄就出現在螢幕中間。按數字或 Enter,選取的內容直接貼上;常用的內容收藏起來,隨時取用。</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="../assets/screenshots/zh-tw/card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="快速貼上視窗:頂部是搜尋框和全部、文字、連結、圖片、檔案、收藏六個分頁,下面是帶序號的複製記錄,底列是按鍵說明">+ </figure>+ <p class="more"><a href="features/#quick-paste">了解快速貼上 →</a></p>+ </div>+ </section>++ <section class="section" id="features" aria-labelledby="grid-title">+ <div class="wrap">+ <h2 id="grid-title">不只是同步剪貼簿。</h2>+ <ul class="tiles">+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/></svg>+ <h3>快速貼上 <span class="new">新</span></h3>+ <p>按 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> 叫出複製記錄,選取就貼上。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/></svg>+ <h3>收藏 <span class="new">新</span></h3>+ <p>常用的內容另存一份,不會過期。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/></svg>+ <h3>檔案與資料夾</h3>+ <p>50 MB 以內複製時就已傳好,更大的需要時再取。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>+ <h3>複製記錄</h3>+ <p>所有裝置複製過的都在這裡,能搜尋,能按類型篩選。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>+ <h3>跨網路</h3>+ <p>開啟官方服務,家裡和公司之間也能同步。</p>+ </li>+ <li class="tile">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/></svg>+ <h3>端對端加密</h3>+ <p>優先直連,伺服器看不到你複製了什麼。</p>+ </li>+ </ul>+ <p class="more"><a href="features/">查看全部功能 →</a></p>+ </div>+ </section>++ <section class="section" id="why" aria-labelledby="why-title">+ <div class="wrap">+ <h2 id="why-title">為什麼不用現有的方法</h2>+ <p class="intro">通用剪貼板要同一個 Apple ID、距離夠近;AirDrop 每次都要點接受;傳給自己要手動下載,檔案還留在別人的伺服器上。一台 Mac 加一台 Windows 時,系統內建的方法一個都用不了。</p>+ <div class="block table-scroll">+ <table class="compare">+ <caption class="skip">隔空貼與其他方式的比較</caption>+ <thead><tr><td></td><th scope="col" class="ours">隔空貼</th><th scope="col">通用剪貼板</th><th scope="col">AirDrop</th><th scope="col">聊天軟體</th></tr></thead>+ <tbody>+ <tr><th scope="row">不同 Apple ID 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要對方接受</td><td class="yes">可以</td></tr>+ <tr><th scope="row">Mac 與 Windows 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">不在同一個網路(家裡和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>+ <tr><th scope="row">複製後直接貼上,不用點接受</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>+ <tr><th scope="row">檔案與整個資料夾</th><td class="yes ours">可以</td><td class="partial">不穩定</td><td class="yes">可以</td><td class="partial">要先壓縮</td></tr>+ <tr><th scope="row">找回之前複製過的內容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻聊天記錄</td></tr>+ <tr><th scope="row">僅自己的裝置可解密內容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">依軟體而定</td></tr>+ </tbody>+ </table>+ </div>+ </div>+ </section>+<section class="section" id="deploy" aria-labelledby="deploy-title"><div class="wrap"><h2 id="deploy-title">兩台電腦怎麼連起來</h2>@@ -294,313 +288,6 @@</div></section>- <section class="section" aria-labelledby="history-title">- <div class="wrap">- <h2 id="history-title">所有裝置上複製過的,都在這裡</h2>- <p class="intro">複製記錄保留最近 3 天的內容,隨時可以放回剪貼簿,圖片點一下就能預覽。50 MB 以內的檔案在你複製的時候就已經傳好了,更大的檔案等需要時再點一下拉取。想找以前複製過的,用文字內容或檔名搜尋一下就有。</p>- <figure class="shot">- <img src="../assets/screenshots/zh-tw/history-dark.png" width="2112" height="1472" alt="隔空貼的複製記錄:來自 MacBook Air 和 Mac mini 的檔案、圖片、文字,大檔案顯示「接收」按鈕">- </figure>- </div>- </section>-- <section class="section" aria-labelledby="flow-title">- <div class="wrap">- <h2 id="flow-title">按下複製之後</h2>- <p class="intro">文字、圖片、檔案、整個資料夾,都走同一條路。</p>- <ol class="flow">- <li><h3>偵測</h3><p>在 Mac 上,背景服務每隔一小段時間查看一次剪貼簿的變更計數,只看計數和類型,不需要授權,也不會跳出系統提示;在 Windows 上,複製的那一刻系統就會通知它。</p></li>- <li><h3>傳輸</h3><p>文字隨訊息一起送出;50 MB 以內的圖片和檔案打包成串流立即推送;更大的檔案只送出一筆記錄,等你需要時再傳。</p></li>- <li><h3>貼上</h3><p>另一台電腦先把內容存到本機,再寫入剪貼簿。按下 ⌘V 或 Ctrl+V 貼上的,就是本機上真正的檔案。</p></li>- </ol>- </div>- </section>-- <section class="section" aria-labelledby="why-title">- <div class="wrap">- <h2 id="why-title">為什麼不用現有的方法</h2>- <p class="intro">通用剪貼板要同一個 Apple ID、距離夠近;AirDrop 每次都要點接受;傳給自己要手動下載,檔案還留在別人的伺服器上。一台 Mac 加一台 Windows 時,系統內建的方法一個都用不了。</p>- <div class="block table-scroll">- <table class="compare">- <caption class="skip">隔空貼與其他方式的比較</caption>- <thead><tr><td></td><th scope="col" class="ours">隔空貼</th><th scope="col">通用剪貼板</th><th scope="col">AirDrop</th><th scope="col">聊天軟體</th></tr></thead>- <tbody>- <tr><th scope="row">不同 Apple ID 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="partial">要對方接受</td><td class="yes">可以</td></tr>- <tr><th scope="row">Mac 與 Windows 之間</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">不在同一個網路(家裡和公司)</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="yes">可以</td></tr>- <tr><th scope="row">複製後直接貼上,不用點接受</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="no">不行</td><td class="no">不行</td></tr>- <tr><th scope="row">檔案與整個資料夾</th><td class="yes ours">可以</td><td class="partial">不穩定</td><td class="yes">可以</td><td class="partial">要先壓縮</td></tr>- <tr><th scope="row">找回之前複製過的內容</th><td class="yes ours">可以</td><td class="no">不行</td><td class="no">不行</td><td class="partial">翻聊天記錄</td></tr>- <tr><th scope="row">僅自己的裝置可解密內容</th><td class="yes ours">可以</td><td class="yes">可以</td><td class="yes">可以</td><td class="some">依軟體而定</td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="how" aria-labelledby="how-title">- <div class="wrap">- <h2 id="how-title">運作原理</h2>- <p class="intro">同一網路裡,裝置不需伺服器就能找到彼此;跨網路時,官方服務或自建伺服器協助交換連線資訊。優先打洞直連,失敗後才使用加密中繼。下圖展示通用的信令與中繼結構。</p>- <figure class="diagram">- <svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">- <title id="diagram-title">隔空貼的連線方式</title>- <desc id="diagram-desc">電腦 A 與電腦 B(Mac 或 Windows)之間是 WebRTC 直連;兩台電腦都透過信令連線到信令與中繼服務;直連失敗時,資料經伺服器的 TURN 中繼。</desc>- <rect class="d-box" x="360" y="24" width="240" height="96" rx="14"/>- <text class="d-title" x="480" y="64" text-anchor="middle">信令與中繼服務</text>- <text class="d-sub" x="480" y="92" text-anchor="middle">信令、STUN、TURN 中繼</text>- <path class="d-sig" d="M140 210V58H360"/>- <path class="d-sig" d="M820 210V58H600"/>- <path class="d-relay" d="M196 210V100H360"/>- <path class="d-relay" d="M764 210V100H600"/>- <text class="d-note" x="210" y="50">信令:交換連線資訊</text>- <text class="d-note" x="210" y="128">中繼:只在直連打不通時</text>- <rect class="d-box" x="40" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="160" y="262" text-anchor="middle">Mac</text>- <text class="d-sub" x="160" y="290" text-anchor="middle">在這裡複製</text>- <rect class="d-box" x="680" y="210" width="240" height="120" rx="14"/>- <text class="d-title" x="800" y="262" text-anchor="middle">Mac 或 Windows</text>- <text class="d-sub" x="800" y="290" text-anchor="middle">在這裡貼上</text>- <path class="d-direct" d="M280 270H680"/>- <text class="d-label" x="480" y="256" text-anchor="middle">WebRTC 直連,DTLS 加密</text>- <text class="d-note" x="480" y="298" text-anchor="middle">資料只在兩台電腦之間傳輸</text>- <g class="d-legend" transform="translate(40 372)">- <path class="d-direct" d="M0 0H28"/><text x="38" y="5">資料(直連)</text>- <path class="d-relay" d="M210 0H238"/><text x="248" y="5">資料(中繼,備用)</text>- <path class="d-sig" d="M470 0H498"/><text x="508" y="5">信令</text>- </g>- </svg>- <ul class="points diagram-text">- <li><strong>WebRTC 直連,DTLS 加密</strong> 資料只在兩台電腦之間傳輸</li>- <li><strong>信令與中繼服務</strong> 信令、STUN、TURN 中繼</li>- <li>中繼:只在直連打不通時</li>- </ul>- </figure>- </div>- </section>-- <section class="section" id="multi-uplink" aria-labelledby="multi-title">- <div class="wrap">- <h2 id="multi-title">公司網路也能直連</h2>- <p class="intro">公司雙線路、電信業者位址池這類網路有多個出口,會依目的位址決定走哪一個。只偵測一次,只會知道其中一個出口,結果只能經伺服器中繼。隔空貼會偵測每個出口,把位址全部告訴對方。</p>- <div class="cols">- <div>- <h3>做了什麼</h3>- <ul class="points">- <li><strong>共用一個連接埠。</strong>所有連線都從同一個本機 UDP 連接埠收發,向不同伺服器查到的位址才對得上。</li>- <li><strong>偵測每個出口。</strong>在這個連接埠上同時詢問 7 台 IP 分散的伺服器,網路有幾個出口就拿到幾個位址;遭 DNS 汙染的位址會先過濾掉。</li>- <li><strong>全部告訴對方。</strong>對方逐一嘗試,與實際出口相符的那一個就能打通。</li>- <li><strong>記住見過的出口。</strong>某次漏掉的出口,如果它不會改變連接埠,就用「出口 IP + 本機連接埠」推算補上。</li>- <li><strong>講好誰先送封包。</strong>有些路由器收到對方先到的封包,會把連接埠佔住。一方先公布出口位址,另一方先往那邊送封包,再公布自己的;重試時兩種順序輪流使用。</li>- <li><strong>閒置時重試直連。</strong>直連失敗且中繼可用時,先透過中繼保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中繼。</li>- </ul>- </div>- <div>- <h3>用真實的網路拓撲驗證</h3>- <p class="small">NAT 打洞實驗室用 Linux 網路命名空間與 iptables 搭出這些拓撲,用隔空貼真正的連線程式碼各跑一遍,每次提交程式碼都會自動執行。</p>- <div class="table-scroll">- <table>- <thead><tr><th scope="col">情境</th><th scope="col">結果</th></tr></thead>- <tbody>- <tr><td>單一出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>兩個出口,舊版本(對照)</td><td>中繼</td></tr>- <tr><td>兩個出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>四個出口 ↔ 家用路由器</td><td>直連</td></tr>- <tr><td>兩個出口,第二條線路沒偵測到,沒有歷史記錄</td><td>中繼</td></tr>- <tr><td>兩個出口,第二條線路沒偵測到,有歷史記錄</td><td>直連</td></tr>- <tr><td>兩個出口 ↔ 兩個出口</td><td>直連</td></tr>- <tr><td>兩個出口 ↔ 連接埠隨機分配的 NAT</td><td>中繼</td></tr>- <tr><td>一開始打不通,之後網路恢復</td><td>先中繼,隨後直連</td></tr>- <tr><td>公司路由器會為外來的封包佔住連接埠</td><td>直連</td></tr>- <tr><td>家用路由器會為外來的封包佔住連接埠</td><td>先中繼,重試一次後直連</td></tr>- <tr><td>沒有伺服器,同一個網段,靠 mDNS 探索</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩個網段,一邊記得對方位址</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩台都擋外來連線,都記得位址</td><td>直連</td></tr>- <tr><td>沒有伺服器,兩台都擋外來連線,只有一邊記得</td><td>連不上(已知限制)</td></tr>- <tr><td>沒有伺服器,兩個網段之間被隔離</td><td>連不上</td></tr>- </tbody>- </table>- </div>- <p class="small">實測:一台在 4 個出口的公司網路裡的 Mac 與家裡的 Mac,改良前只能中繼,速度被伺服器頻寬限制在 0.6 MB/s;改良後可以直連,連上伺服器後約 3 秒就建立連線。</p>- <p class="small">量測過程、設計取捨與踩過的坑,請見<a href="../design/nat-traversal.html">技術說明</a>。</p>- </div>- </div>- </div>- </section>-- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">伺服器看不到你複製了什麼</h2>- <div class="cols">- <ul class="points">- <li><strong>伺服器不存帳號,也不存內容。</strong>裝置身分是一把 Ed25519 金鑰,裝置 ID 由公鑰算出,伺服器不需要使用者資料表就能驗證身分。</li>- <li><strong>配對時由你核對安全指紋。</strong>兩邊的螢幕會顯示同樣的兩行:雙方各自公鑰的指紋。伺服器有能力替換轉送中的公鑰,但一旦替換,兩邊螢幕上的指紋就對不上了,這一步就是防範中間人攻擊的關卡。</li>- <li><strong>之後的每則訊息都帶有簽章,</strong>伺服器無法冒充你的裝置。直連通道的憑證在交握後還會再核對一次,不一致就立即中斷。</li>- <li><strong>中繼也只是轉送密文。</strong>TURN 轉送的是加密後的封包,中繼憑證按裝置個別簽發,12 小時後過期。</li>- <li><strong>區域網路裡也一樣。</strong>裝置在區域網路裡廣播的只是一個每天都會變的匿名識別碼,看不出是誰的電腦,只有開啟「搜尋附近裝置」時才會帶上裝置名稱;配對同樣要核對指紋,之後的訊息同樣帶有簽章。</li>- </ul>- <figure class="figure-card">- <img src="../assets/screenshots/zh-tw/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配對時的「核對安全指紋」對話框,顯示 R8NF-2WTC-QL5J,要求與另一台電腦上顯示的完全一致">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">- <div class="wrap">- <h2 id="fallback-title">出問題的時候會怎樣</h2>- <p class="intro">每個人的網路環境都不一樣。下面這些情況都考慮過,也都有對應的測試。</p>- <dl class="fallbacks">- <div><dt>在同一個網路裡找不到對方</dt><dd>不同網段、訪客網路、開了 AP 隔離的 Wi‑Fi,都會擋住區域網路探索。配對時輸入對方配對碼下方顯示的位址就行;之後位址會被記住,兩邊都換了位址時,在裝置清單裡幫它重新輸入一次。</dd></div>- <div><dt>系統擋住區域網路連線</dt><dd>從 macOS 15 起,背景服務要連線區域網路裡的裝置,需要你允許;Windows 第一次執行時,防火牆會跳出詢問。沒有允許時,App 會提示,並提供直達設定的按鈕。</dd></div>- <div><dt>兩台電腦打不通直連</dt><dd>官方模式在直連失敗後,依目前額度申請中繼;自建模式使用自己的 TURN 中繼。兩種方式的內容均保持端到端加密。</dd></div>- <div><dt>連不上公共 STUN 伺服器</dt><dd>在中國大陸連公共 STUN 時通時斷。伺服器內建 STUN,用戶端會優先使用它。</dd></div>- <div><dt>從中繼切回直連</dt><dd>直連失敗且中繼可用時,先透過中繼保持同步。連線閒置時可重試打洞,成功後切回直連並釋放中繼。</dd></div>- <div><dt>對方睡眠、斷線或重新開機</dt><dd>連線悄悄斷了也能察覺,會立即關閉並重新連線。這段期間複製的內容會先記下來,連上後補送到對方的複製記錄裡,但不會覆蓋對方當下剪貼簿裡的內容。</dd></div>- <div><dt>伺服器斷線</dt><dd>自動重新連線,間隔從 1 秒開始加倍、最長 30 秒,並加上隨機抖動,避免一大群裝置同時重連。同一個網路裡的裝置不受影響,照常同步。</dd></div>- <div><dt>檔案太大</dt><dd>超過上限的只同步一筆記錄,需要時再拉取。拉取時如果原始檔案已經被刪除,會明確告訴你,而不是莫名其妙地失敗。</dd></div>- <div><dt>貼到只接受純文字的地方</dt><dd>從網頁複製的帶格式文字,會同時寫入 HTML 和純文字兩份,貼到哪裡都不會冒出標籤。</dd></div>- <div><dt>檔名在 Windows 上不合法</dt><dd>Mac 上可以用的冒號、問號等字元,收到時會換成對應的全形字元,檔名照樣看得懂;只差在大小寫的兩個檔案也不會互相覆蓋。</dd></div>- <div><dt>複製的是密碼</dt><dd>在 Windows 上,密碼管理工具複製的內容會帶一個「不要記錄」的標記,隔空貼看到就跳過:不同步,也不會進入複製記錄。</dd></div>- <div><dt>還沒授權讀取剪貼簿</dt><dd>不去讀取內容,否則背景程序會卡在一個看不見的系統對話框上。App 裡會提示你去授權,並提供直達設定的按鈕。</dd></div>- <div><dt>背景服務當掉</dt><dd>Mac 上由系統的 launchd、Windows 上由隔空貼內建的守護程式自動重新啟動,每次至少間隔 10 秒,不會無限重啟。</dd></div>- <div><dt>更新了 App,或把它搬到別的位置</dt><dd>打開 App 時會自動修正登入項目,並把背景服務重新啟動到新版本。</dd></div>- </dl>- </div>- </section>-- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">安裝</h2>- <p class="intro">每台電腦裝一個 App。在同一個網路裡裝好就能配對;跨網路時,再選一種方式讓兩台電腦找到彼此。第一次安裝可以跟著<a href="start/">快速入門</a>做。</p>- <div class="install">- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>- <ol>- <li>下載 DMG,打開後把隔空貼拖進「應用程式」。<span class="aside">Apple 晶片與 Intel 晶片各有一個版本,下載頁會告訴你怎麼查自己的 Mac 是哪一種。</span></li>- <li>從「應用程式」裡打開。<span class="aside">第一次會提示「無法驗證開發者」:隔空貼還沒有經過 Apple 公證。到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」,只需要這一次。</span></li>- <li>點「啟用背景同步」。系統詢問是否允許讀取剪貼簿、是否允許尋找區域網路上的裝置時,都選擇允許。</li>- <li>跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#macos"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Mac 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>- <ol>- <li>執行 PasteFerry-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">隔空貼還沒有程式碼簽章,Windows 會提示「Windows 已保護您的電腦」:點「其他資訊」,再點「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>。</span></li>- <li>打開隔空貼,點「啟用背景同步」。關掉視窗後,它會在右下角的通知區域繼續執行。防火牆詢問時選擇允許。</li>- <li>跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版</a>- </div>- <div>- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3>- <ol>- <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓縮後執行 <code>./PasteFerry/install.sh</code>。</li>- <li>從應用程式選單打開隔空貼,點「啟用背景同步」。之後它會在登入時自動啟動。</li>- <li>跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。</li>- </ol>- <a class="button" href="download/#linux"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Linux 版</a>- </div>- </div>- <div class="install-more">- <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>連線方式</h3>- <p class="small">同一網路裡裝好就能配對;不同網路裡,啟用官方服務即可,無需自建。也保留自建伺服器與 Tailscale,依需求選擇。</p>- <ul class="opts">- <li><a href="official/">官方服務</a><span>跨網路,無需自建</span></li>- <li><a href="lan/">同一網路</a><span>什麼都不用架設</span></li>- <li><a href="cloud/">自建公網伺服器</a><span>自行管理容量與部署</span></li>- <li><a href="tailscale/">Tailscale</a><span>跨網路,不用伺服器</span></li>- </ul>- <a class="button quiet" href="start/#server">比較連線方式</a>- </div>- <p class="pairing">一台產生配對碼,另一台輸入;核對兩邊的安全指紋後確認。原有配對關係可繼續使用。 官方服務無需填寫對方 IP;僅區域網路跨網段或 Tailscale 配對時填寫對方位址。</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">- <div class="wrap">- <h2 id="specs-title">技術規格</h2>- <div class="table-scroll">- <table class="specs">- <tbody>- <tr><th scope="row">版本</th><td>2.3.0,<time datetime="2026-10-19">2026 年 10 月 19 日</time>發布</td></tr>- <tr><th scope="row">Mac 用戶端</th><td>macOS 13 Ventura 以上;Apple 晶片與 Intel 晶片各有一個安裝檔,約 25 MB,不需要 Rosetta;也有兩種晶片通用的版本,約 47 MB</td></tr>- <tr><th scope="row">Windows 用戶端</th><td>Windows 10 與 Windows 11,x64;只為目前使用者安裝,不需要系統管理員權限;安裝檔約 23 MB</td></tr>- <tr><th scope="row">Linux 用戶端</th><td>x64 與 ARM64;.deb(Debian、Ubuntu 等)或 tar.gz(其他發行版),約 22 MB;需要 X11 桌面,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有);GTK 3</td></tr>- <tr><th scope="row">伺服器</th><td>僅自建時需要部署;使用官方服務不需自備伺服器。自建支援 Linux x86_64/ARM64、macOS 與 Windows 10/11 x64。</td></tr>- <tr><th scope="row">介面語言</th><td>簡體中文、繁體中文(台灣、香港)、English、日本語,預設跟隨系統,可在設定裡切換</td></tr>- <tr><th scope="row">同步的內容</th><td>純文字、帶格式的文字、圖片與螢幕截圖、檔案、資料夾,可依類型個別關閉</td></tr>- <tr><th scope="row">傳輸</th><td>WebRTC 資料通道,優先直連,打不通時經 TURN 中繼;同一個網路裡透過 mDNS 探索、UDP 8788 交換連線資訊;多出口網路逐一偵測每個出口;檔案以 tar + zstd 串流打包</td></tr>- <tr><th scope="row">加密與身分</th><td>DTLS 端對端加密;裝置身分為 Ed25519 金鑰;信令訊息逐則簽章</td></tr>- <tr><th scope="row">配對</th><td>6 碼配對碼,5 分鐘內有效,字元集去掉了 0/O、1/I 等容易混淆的字元;配對時人工核對安全指紋</td></tr>- <tr><th scope="row">自動同步上限</th><td>預設 50 MB,可在 1 MB 到 1 GB 之間調整</td></tr>- <tr><th scope="row">記錄保留</th><td>預設 3 天,可在 1 小時到 30 天之間調整,到期自動清除</td></tr>- <tr><th scope="row">實測速度</th><td>區域網路直連傳輸 20 MB 檔案約 330 毫秒,檢查碼一致</td></tr>- <tr><th scope="row">技術堆疊</th><td>背景服務與伺服器用 Go(Windows 上以純 Go 呼叫 Win32,Linux 上以純 Go 走 X11 協定),介面用 Flutter(三個系統共用一套程式碼),訊息定義用 Protocol Buffers</td></tr>- <tr><th scope="row">授權</th><td><a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">GNU AGPL-3.0</a></td></tr>- </tbody>- </table>- </div>- </div>- </section>-- <section class="section" id="faq" aria-labelledby="faq-title">- <div class="wrap">- <h2 id="faq-title">常見問題</h2>- <div class="faq">- <details>- <summary>開著 UU 遠端時,為什麼一直出現 .uuremote_ 檔案?</summary>- <div class="answer"><p>UU 遠端會在系統剪貼簿裡寫入暫時的佔位檔案,舊版隔空貼把它們當成一般檔案,反覆記錄和轉送。1.3.2 在傳送和接收時會過濾已確認的佔位檔名,啟動時清除只含佔位檔案的記錄。正常的空檔案、隱藏檔案和大檔案不受這條規則影響。50 MB 只決定是否自動傳輸,與 UU 的 UDP P2P 設定無關。建議兩端都更新;其他軟體如果也會同步剪貼簿,仍可能產生一般內容的重複記錄。</p></div>- </details>- <details>- <summary>和 macOS 內建的「通用剪貼板」有什麼不同?</summary>- <div class="answer"><p>Mac、Windows、Linux 互通,文字、圖片、檔案、整個資料夾都可以,不要求同一個帳號。現在啟用官方服務就能跨網路同步,無需自行架設伺服器。優先直連,始終端到端加密。</p><p>如果你的兩台 Mac 用同一個 Apple ID、總是放在一起、主要複製文字,系統內建的功能就夠用了。</p></div>- </details>- <details>- <summary>伺服器會看到我複製的內容嗎?</summary>- <div class="answer"><p>伺服器無法解密複製內容:直連時內容不經過中繼伺服器;中繼時轉送端到端加密封包。官方服務保留必要裝置與用量統計,詳見隱私說明。原始碼可供稽核,不代表能證明私有正式環境的儲存行為。</p></div>- </details>- <details>- <summary>公司網路(雙線路、多出口)能直連嗎?</summary>- <div class="answer"><p>可以。這類網路依目的位址選擇出口,隔空貼會在同一個連接埠上向多台伺服器偵測,拿到每個出口的位址後一起傳給對方,由對方逐一嘗試。實測公司的 4 個出口與家用寬頻之間可以直連。對方是連接埠隨機分配的 NAT 時,仍會走中繼。</p></div>- </details>- <details>- <summary>一定要自己準備伺服器嗎?</summary>- <div class="answer"><p>不需要。不同網路時,在兩台電腦上啟用<a href="official/">官方服務</a>即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、<a href="cloud/">自建伺服器</a>與 <a href="tailscale/">Tailscale</a> 繼續可用。</p></div>- </details>- <details>- <summary>家裡沒有公用 IP,能在家和公司之間同步嗎?</summary>- <div class="answer"><p>不需要。不同網路時,在兩台電腦上啟用<a href="official/">官方服務</a>即可,不需購買雲端主機或填寫位址。預設關閉,目前提供每日 100 MB 中繼額度,直連不消耗此額度。區域網路、<a href="cloud/">自建伺服器</a>與 <a href="tailscale/">Tailscale</a> 繼續可用。</p></div>- </details>- <details>- <summary>在同一個網路裡,為什麼找不到另一台?</summary>- <div class="answer"><p>先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見<a href="lan/#faq">同一網路教學</a>。</p></div>- </details>- <details>- <summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>- <div class="answer"><p>支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真正的檔案,能直接貼進檔案總管、WeChat、Office。</p><p>也支援 x64 與 ARM64 的 Linux 桌面:X11,或附有 XWayland 的 Wayland 桌面(GNOME、KDE 等預設都有)。複製的檔案能直接貼進檔案管理員。</p><p>暫不支援 iPhone 和 iPad:iOS 不允許 App 在背景監聽剪貼簿,做不到複製後立即同步。</p></div>- </details>- <details>- <summary>為什麼第一次打開時系統會擋一下?</summary>- <div class="answer"><p>隔空貼還沒有經過 Apple 公證,Windows 版也還沒有程式碼簽章,兩者都需要每年付費購買的憑證。</p><p>在 Mac 上,到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」;在 Windows 上,在「Windows 已保護您的電腦」提示裡點「其他資訊」,再點「仍要執行」。都只需要這一次。</p></div>- </details>- <details>- <summary>大檔案怎麼處理?</summary>- <div class="answer"><p>預設 50 MB 以內的內容,在你複製時就推送到另一台電腦,那邊可以直接貼上;更大的檔案只同步一筆記錄,需要時在複製記錄裡點「拉取到本機」再傳。上限可以在設定裡調整。</p></div>- </details>- <details>- <summary>免費嗎?公司能用嗎?</summary>- <div class="answer"><p>免費。隔空貼以 GNU AGPL-3.0 授權開源,個人和公司都可以免費使用和修改。散布它,或透過網路提供修改過的版本時,需要以同樣的授權公開原始碼。</p></div>- </details>- <details>- <summary>官方中繼不限量嗎?</summary>- <div class="answer"><p>目前預設每機器額度組每日 100 MB 中繼流量,上傳與下載合計,北京時間午夜重設。重新安裝不保證獲得新額度。用量頁顯示實際額度、剩餘量與更新時間;額度用完仍可直連。額度與服務可用性可能調整,以用戶端顯示為準。</p></div>- </details>- </div>- </div>- </section>-<section class="closing" aria-labelledby="closing-title"><div class="wrap"><h2 class="display" id="closing-title">兩台電腦,一個剪貼簿。</h2>diff --git a/docs/zh-tw/lan/index.html b/docs/zh-tw/lan/index.htmlindex cdc62b0..0edf1ff 100644--- a/docs/zh-tw/lan/index.html+++ b/docs/zh-tw/lan/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server" aria-current="true">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/official/index.html b/docs/zh-tw/official/index.htmlindex e92d961..c756d18 100644--- a/docs/zh-tw/official/index.html+++ b/docs/zh-tw/official/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/privacy/index.html b/docs/zh-tw/privacy/index.htmlindex 8074acb..2b154f7 100644--- a/docs/zh-tw/privacy/index.html+++ b/docs/zh-tw/privacy/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/security/index.html b/docs/zh-tw/security/index.htmlnew file mode 100644index 0000000..be4b47c--- /dev/null+++ b/docs/zh-tw/security/index.html@@ -0,0 +1,128 @@+<!doctype html>+<html lang="zh-TW">+<head>+ <meta charset="utf-8">+ <script>+ (function () {+ if (location.hostname !== "baiyuze.github.io") return;+ var prefix = /^\/(?:pasteferry|copysync)(?=\/|$)/.exec(location.pathname);+ if (!prefix) return;+ var path = location.pathname.slice(prefix[0].length) || "/";+ location.replace("https://pasteferry.cc" + path + location.search + location.hash);+ })();+ </script>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>安全與隱私:端對端加密與配對核對 — 隔空貼</title>+ <meta name="description" content="裝置身分是一把金鑰,配對時由你核對指紋,之後的每則訊息都帶簽章,內容只有你的裝置能解密。">+ <link rel="canonical" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-CN" href="https://pasteferry.cc/security/">+ <link rel="alternate" hreflang="zh-TW" href="https://pasteferry.cc/zh-tw/security/">+ <link rel="alternate" hreflang="zh-HK" href="https://pasteferry.cc/zh-hk/security/">+ <link rel="alternate" hreflang="en" href="https://pasteferry.cc/en/security/">+ <link rel="alternate" hreflang="ja" href="https://pasteferry.cc/ja/security/">+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="隔空貼">+ <meta property="og:title" content="安全與隱私:端對端加密與配對核對 — 隔空貼">+ <meta property="og:description" content="裝置身分是一把金鑰,配對時由你核對指紋,之後的每則訊息都帶簽章,內容只有你的裝置能解密。">+ <meta property="og:url" content="https://pasteferry.cc/zh-tw/security/">+ <meta property="og:image" content="https://pasteferry.cc/assets/og-zh-hant.png">+ <meta property="og:locale" content="zh_TW">+ <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">+ <link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script>+</head>+<body>+ <a class="skip" href="#main">跳到主要內容</a>++ <header class="bar">+ <div class="wrap">+ <a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a>+ <nav aria-label="頁面導覽">+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server">連線方式</a>+ <a href="../../zh-tw/download/">下載</a>+ <details class="menu">+ <summary aria-label="更多頁面" class="current"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="./" aria-current="page">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details>+ <details class="lang">+ <summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li><a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>+ <li><a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a></li>+ <li><a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>+ <li><a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a></li>+ <li><a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>+ </ul>+ </details>+ </nav>+ </div>+ </header>++ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="../../zh-tw/">隔空貼</a></p>+ <h1 class="display">伺服器看不到你複製了什麼</h1>+ <p class="lede">裝置身分是一把金鑰,配對時由你核對指紋,之後的每則訊息都帶簽章,內容只有你的裝置能解密。</p>+ </div>+ </section>++ <section class="section">+ <div class="wrap">+ <div class="cols">+ <ul class="points">+ <li><strong>伺服器不存帳號,也不存內容。</strong>裝置身分是一把 Ed25519 金鑰,裝置 ID 由公鑰算出,伺服器不需要使用者資料表就能驗證身分。</li>+ <li><strong>配對時由你核對安全指紋。</strong>兩邊的螢幕會顯示同樣的兩行:雙方各自公鑰的指紋。伺服器有能力替換轉送中的公鑰,但一旦替換,兩邊螢幕上的指紋就對不上了,這一步就是防範中間人攻擊的關卡。</li>+ <li><strong>之後的每則訊息都帶有簽章,</strong>伺服器無法冒充你的裝置。直連通道的憑證在交握後還會再核對一次,不一致就立即中斷。</li>+ <li><strong>中繼也只是轉送密文。</strong>TURN 轉送的是加密後的封包,中繼憑證按裝置個別簽發,12 小時後過期。</li>+ <li><strong>區域網路裡也一樣。</strong>裝置在區域網路裡廣播的只是一個每天都會變的匿名識別碼,看不出是誰的電腦,只有開啟「搜尋附近裝置」時才會帶上裝置名稱;配對同樣要核對指紋,之後的訊息同樣帶有簽章。</li>+ </ul>+ <figure class="figure-card">+ <img src="../../assets/screenshots/zh-tw/card-verify-dark.png" width="1120" height="800" alt="配對時的「核對安全指紋」對話框,顯示 R8NF-2WTC-QL5J,要求與另一台電腦上顯示的完全一致">+ </figure>+ </div>+ <p class="more"><a href="../../zh-tw/privacy/">隱私權說明 →</a></p>+ </div>+ </section>+ </main>++ <footer class="footer">+ <div class="wrap">+ <p>隔空貼以 GNU AGPL-3.0 授權開源。</p>+ <nav aria-label="頁尾連結">+ <a href="https://github.com/baiyuze/pasteferry/releases">所有版本</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a>+ <a href="https://pasteferry.cc/design/nat-traversal.html">技術說明</a>+ <a href="https://github.com/baiyuze/pasteferry/blob/main/LICENSING.md">授權說明</a>+ <a href="https://github.com/baiyuze/pasteferry/issues">回報問題</a>+ <a href="../../zh-tw/privacy/">隱私與必要資料</a>+ </nav>+ <nav aria-label="語言">+ <a href="../../security/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>+ <a href="../../zh-tw/security/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a>+ <a href="../../zh-hk/security/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a>+ <a href="../../en/security/" hreflang="en" lang="en" data-lang="en">English</a>+ <a href="../../ja/security/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>+ </nav>+ </div>+ </footer>++ <script src="../../assets/site.js" defer></script>+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>+</body>+</html>diff --git a/docs/zh-tw/server/index.html b/docs/zh-tw/server/index.htmlindex 423a976..d910604 100644--- a/docs/zh-tw/server/index.html+++ b/docs/zh-tw/server/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server" aria-current="true">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/start/index.html b/docs/zh-tw/start/index.htmlindex be5dfca..340daf1 100644--- a/docs/zh-tw/start/index.html+++ b/docs/zh-tw/start/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="./" aria-current="page">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="#server">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="./" aria-current="page">快速入門</a>+ <a class="wide" href="#server">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="./" aria-current="page">快速入門</a></li>+ <li class="narrow"><a href="#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/docs/zh-tw/tailscale/index.html b/docs/zh-tw/tailscale/index.htmlindex 5804e78..edce434 100644--- a/docs/zh-tw/tailscale/index.html+++ b/docs/zh-tw/tailscale/index.html@@ -33,6 +33,7 @@<link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png"><link rel="stylesheet" href="../../assets/site.css">+ <script>document.documentElement.classList.add("js");if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) document.documentElement.classList.add("pc");</script></head><body><a class="skip" href="#main">跳到主要內容</a>@@ -41,12 +42,23 @@<div class="wrap"><a class="brand" href="../../zh-tw/" aria-label="隔空貼首頁"><img src="../../assets/icon.svg" alt="" width="26" height="26">隔空貼</a><nav aria-label="頁面導覽">- <a href="../../zh-tw/start/">快速入門</a>- <a class="wide" href="../../zh-tw/#how">運作原理</a>- <a class="wide" href="../../zh-tw/#faq">常見問題</a>- <a class="mid" href="../../zh-tw/start/#server" aria-current="true">連線方式</a>+ <a href="../../zh-tw/features/">功能</a>+ <a class="mid" href="../../zh-tw/start/">快速入門</a>+ <a class="wide" href="../../zh-tw/start/#server" aria-current="true">連線方式</a><a href="../../zh-tw/download/">下載</a>- <a class="wide" href="https://github.com/baiyuze/pasteferry">GitHub</a>+ <details class="menu">+ <summary aria-label="更多頁面"><span>更多</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>+ <ul>+ <li class="narrow"><a href="../../zh-tw/start/">快速入門</a></li>+ <li class="narrow"><a href="../../zh-tw/start/#server">連線方式</a></li>+ <li><a href="../../zh-tw/how/">運作原理</a></li>+ <li><a href="../../zh-tw/security/">安全與隱私</a></li>+ <li><a href="../../zh-tw/faq/">常見問題</a></li>+ <li class="sep" role="separator"></li>+ <li><a href="https://github.com/baiyuze/pasteferry/blob/main/CHANGELOG.md">更新記錄</a></li>+ <li><a href="https://github.com/baiyuze/pasteferry">GitHub</a></li>+ </ul>+ </details><details class="lang"><summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary><ul>diff --git a/tools/site/build.py b/tools/site/build.pyindex f655dcc..8c979c2 100644--- a/tools/site/build.py+++ b/tools/site/build.py@@ -18,6 +18,7 @@ from pathlib import Pathfrom content.tour import localized as tour_copyfrom content.privacy import COPY as PRIVACY_COPYfrom content.official import COPY as OFFICIAL_COPY+from content.features import localized as features_copyROOT = Path(__file__).resolve().parents[2]DOCS = ROOT / "docs"@@ -67,7 +68,12 @@ DOWNLOAD = "download/"TOUR = "tour/"PRIVACY = "privacy/"OFFICIAL = "official/"-SUBPAGES = [START, OFFICIAL, LAN, CLOUD, GUIDE, TAILSCALE, DOWNLOAD, TOUR, PRIVACY]+# 功能页,以及从首页挪出去、放在顶栏「更多」里的三页:用户上手不必先看的内容+FEATURES = "features/"+HOW = "how/"+SECURITY = "security/"+FAQ = "faq/"+SUBPAGES = [FEATURES, START, OFFICIAL, LAN, CLOUD, GUIDE, TAILSCALE, DOWNLOAD, TOUR, PRIVACY, HOW, SECURITY, FAQ]DEPLOY_PAGES = [LAN, CLOUD, GUIDE, TAILSCALE]# 放到网站上的技术方案:文件名 → 网页名。其他 design/*.md 链接到 GitHub@@ -93,6 +99,46 @@ GLOBE = ('<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-widtCHEVRON = ('<svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" ''stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg>')+# 按键在 Mac 与 Windows、Linux 上的两种写法。文案里写占位符,页面里两种都放,+# 由 <head> 里的 PLATFORM 按访问者的系统显示其中一种;没有脚本时显示 Mac 的。+# PLATFORM 同时给 html 加 js:滚动到才淡入的块只在有脚本时先藏起来+KEYS = {+ "key": ("⌥V", "Alt+V"),+ "enter": ("↩", "Enter"),+ "plain": ("⇧↩", "Shift+Enter"),+ "copyonly": ("⌘↩", "Ctrl+Enter"),+ "fav": ("⌘D", "Ctrl+D"),+ "paste": ("⌘V", "Ctrl+V"),+ "copy": ("⌘C", "Ctrl+C"),+}+PLATFORM = (' <script>document.documentElement.classList.add("js");'+ 'if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) '+ 'document.documentElement.classList.add("pc");</script>\n')+++def keys(text: str) -> str:+ """把文案里的 {key}、{enter} 这类按键占位换成两种写法。"""+ for k, (mac, pc) in KEYS.items():+ text = text.replace("{" + k + "}", f'<span class="k-mac">{mac}</span><span class="k-pc">{pc}</span>')+ return text+++def mac_keys(text: str) -> str:+ """给 alt、title 这类只能是纯文本的地方:按键一律写 Mac 的。"""+ for k, (mac, _) in KEYS.items():+ text = text.replace("{" + k + "}", mac)+ return text+++def app_strings(code: str) -> dict:+ """App 界面的文案(ui/tool/l10n/strings.py),功能页的界面演示直接用它,和 App 里一字不差。"""+ path = ROOT / "ui" / "tool" / "l10n" / "strings.py"+ spec = importlib.util.spec_from_file_location("app_strings", path)+ module = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(module)+ col = {"en": 1, "zh": 2, "ja": 3, "zh-tw": 4, "zh-hk": 5}[code]+ return {row[0]: row[col] for row in module.S}+# 同一份页面也由 GitHub Pages 发布;在那里先跳到官网,再加载样式和其他脚本。GITHUB_PAGES_REDIRECT = """ <script>(function () {@@ -211,34 +257,56 @@ def cta(c: dict, base: str, start: str = "", tour_label: str = "") -> str:<p class="note">{c["dl_note"]}</p>{link}"""+# 顶栏里标出当前所在的栏目(不是当前页面本身)+IN_SECTION = ' aria-current="true"'++def header(c: dict, code: str, up: str, sub: str = "") -> str:- """顶栏。sub 是当前的教程页面(START、GUIDE 等),首页为空。窄屏只留不带 wide 的几项,手机上再收起带 mid 的。+ """顶栏:功能、快速开始、连接方式、下载,其余放进「更多」菜单。sub 是当前页面(START、GUIDE 等),首页为空。+ 窄屏收起带 wide 的,手机上再收起带 mid 的;收起的几项在「更多」菜单里显示(带 narrow 的菜单项)。「连接方式」指向快速开始里三种方式的选择,在各篇教程里显示为当前所在的栏目。"""+ f = features_copy(code)path = LANGS[code][0]if sub:home = up + (path or "./")- base = up + path # 语言根目录,教程页面互相链接用+ base = up + path # 语言根目录,页面之间互相链接用else:home, base = "", ""- if sub == START:- start = '<a href="./" aria-current="page">'- deploy = '<a class="mid" href="#server">'- else:- start = f'<a href="{base}{START}">'- current = ' aria-current="true"' if sub in DEPLOY_PAGES else ""- deploy = f'<a class="mid" href="{base}{START}#server"{current}>'- download = '<a href="./" aria-current="page">' if sub == DOWNLOAD else f'<a href="{base}{DOWNLOAD}">'++ def link(page: str, label: str, cls: str = "", current: bool = False) -> str:+ cls = f' class="{cls}"' if cls else ""+ if sub == page:+ return f'<a{cls} href="./" aria-current="page">{label}</a>'+ return f'<a{cls} href="{base}{page}"{IN_SECTION if current else ""}>{label}</a>'++ server = f'{base}{START}#server' if sub != START else "#server"+ deploy = f'<a class="wide" href="{server}"{IN_SECTION if sub in DEPLOY_PAGES else ""}>{c["nav_server"]}</a>'+ more = [+ f'<li class="narrow">{link(START, c["nav_start"])}</li>',+ f'<li class="narrow"><a href="{server}">{c["nav_server"]}</a></li>',+ f'<li>{link(HOW, c["nav_how"])}</li>',+ f'<li>{link(SECURITY, f["nav_security"])}</li>',+ f'<li>{link(FAQ, c["nav_faq"])}</li>',+ '<li class="sep" role="separator"></li>',+ f'<li><a href="{REPO}/blob/main/CHANGELOG.md">{f["nav_changelog"]}</a></li>',+ f'<li><a href="{REPO}">GitHub</a></li>',+ ]+ in_more = sub in (HOW, SECURITY, FAQ)return f""" <header class="bar"><div class="wrap"><a class="brand" href="{home or "./"}" aria-label="{c["home_label"]}"><img src="{up}assets/icon.svg" alt="" width="26" height="26">{c["brand"]}</a><nav aria-label="{c["nav_label"]}">- {start}{c["nav_start"]}</a>- <a class="wide" href="{home}#how">{c["nav_how"]}</a>- <a class="wide" href="{home}#faq">{c["nav_faq"]}</a>- {deploy}{c["nav_server"]}</a>- {download}{c["nav_download"]}</a>- <a class="wide" href="{REPO}">GitHub</a>+ {link(FEATURES, f["nav_features"])}+ {link(START, c["nav_start"], "mid")}+ {deploy}+ {link(DOWNLOAD, c["nav_download"])}+ <details class="menu">+ <summary aria-label="{f["nav_more_label"]}"{' class="current"' if in_more else ""}><span>{f["nav_more"]}</span>{CHEVRON}</summary>+ <ul>+ {(chr(10) + " ").join(more)}+ </ul>+ </details>{lang_menu(c, code, up, sub)}</nav></div>@@ -361,30 +429,81 @@ def jsonld(c: dict, code: str, path: str, shots: str) -> str:"featureList": c["ld_features"],"author": {"@type": "Person", "name": "baiyuze", "url": "https://github.com/baiyuze"},},- {- "@type": "FAQPage",- "mainEntity": [- {"@type": "Question", "name": q,- "acceptedAnswer": {"@type": "Answer", "text": " ".join(text_of(p) for p in answer)}}- for q, answer in c["faq"]- ],- },],}body = json.dumps(data, ensure_ascii=False, indent=2)return "\n".join(" " + line for line in body.split("\n"))+def head_meta(c: dict, code: str, path: str, title: str, description: str, og_title: str, og_description: str,+ a: str) -> str:+ """首页与功能页共用的 <head> 内容:标题、描述、各语言的地址、分享卡片与图标。"""+ _, hl, locale, _ = LANGS[code]+ sub = path[len(LANGS[code][0]):]+ alternates = "\n".join(+ f' <link rel="alternate" hreflang="{h}" href="{SITE}{p}{sub}">' for p, h, _, _ in LANGS.values())+ if not sub:+ alternates += f'\n <link rel="alternate" hreflang="x-default" href="{SITE}">'+ others = [l for k, (_, _, l, _) in LANGS.items() if k != code]+ return f""" <meta charset="utf-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>{title}</title>+ <meta name="description" content="{esc(description)}">+ <link rel="canonical" href="{SITE}{path}">+{alternates}+ <meta name="theme-color" content="#141416">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="{c["brand"]}">+ <meta property="og:title" content="{esc(og_title)}">+ <meta property="og:description" content="{esc(og_description)}">+ <meta property="og:url" content="{SITE}{path}">+ <meta property="og:image" content="{SITE}assets/{c["og_image"]}">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:locale" content="{locale}">+{"".join(f' <meta property="og:locale:alternate" content="{l}">{chr(10)}' for l in others)} <meta name="twitter:card" content="summary_large_image">+ <link rel="icon" href="{a}favicon.svg" type="image/svg+xml">+ <link rel="icon" href="{a}favicon-32.png" sizes="32x32" type="image/png">+ <link rel="apple-touch-icon" href="{a}apple-touch-icon.png">+ <link rel="stylesheet" href="{a}site.css">+{PLATFORM}"""+++# 首页「功能」六格与功能页用的线条图标,24×24,描边随文字颜色+ICONS = {+ "keys": '<rect x="3" y="6" width="18" height="12" rx="2.5"/><path d="M7 10h1M11 10h1M15 10h2M7 14h10"/>',+ "star": '<path d="m12 3.6 2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z"/>',+ "folder": '<path d="M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z"/>',+ "clock": '<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>',+ "globe": '<circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/>',+ "lock": '<rect x="5" y="10.5" width="14" height="10" rx="2"/><path d="M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5"/>',+}+++def icon(name: str) -> str:+ return (f'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" '+ f'stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">{ICONS[name]}</svg>')+++# 旧版首页上的锚点挪到了别的页面:从外面带着这些锚点进来的,跳到新位置+MOVED_ANCHORS = """ <script>+ (function () {+ var moved = MOVED;+ var to = moved[location.hash.slice(1)];+ if (to) location.replace(to);+ })();+ </script>+"""++def home(code: str) -> str:c = load(code)+ f = features_copy(code)_, tour_ui, _ = tour_copy(code, c)- path, hl, locale, _ = LANGS[code]+ path, hl, _, _ = LANGS[code]up = "../" * path.count("/")a = up + "assets/"shots = shots_dir(code)- alternates = "\n".join(- f' <link rel="alternate" hreflang="{h}" href="{SITE}{p}">' for p, h, _, _ in LANGS.values())- others = [l for k, (_, _, l, _) in LANGS.items() if k != code]ours = ' class="ours"'compare_head = "".join(@@ -393,48 +512,22 @@ def home(code: str) -> str:f' <tr><th scope="row">{label}</th>' + "".join(f'<td class="{cls}{" ours" if i == 0 else ""}">{val}</td>' for i, (cls, val) in enumerate(cells)) + "</tr>"for label, cells in c["compare_rows"])- flow = "\n".join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in c["flow"])- uplink = "\n".join(f" <li><strong>{s}</strong>{t}</li>" for s, t in c["uplink_points"])- lab = "\n".join(f" <tr><td>{s}</td><td>{r}</td></tr>" for s, r in c["lab_rows"])- security = "\n".join(f" <li><strong>{s}</strong>{t}</li>" for s, t in c["security_points"])- fallbacks = "\n".join(f" <div><dt>{t}</dt><dd>{d}</dd></div>" for t, d in c["fallbacks"])- mac_steps = "\n".join(f" <li>{s}</li>" for s in c["mac_steps"])- win_steps = "\n".join(f" <li>{s}</li>" for s in c["win_steps"])- linux_steps = "\n".join(f" <li>{s}</li>" for s in c["linux_steps"])- opts = "\n".join(- f' <li><a href="{page}">{c["plans"][key]["name"]}</a><span>{c["plans"][key]["fit"]}</span></li>'- for key, page, _ in PLANS)- specs = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in c["specs"])links = {"official": OFFICIAL, "lan": LAN, "cloud": CLOUD, "server": GUIDE, "ts": TAILSCALE, "start": START}- faq = faq_list(c["faq"], links)- d = c["diagram"]+ tiles = "\n".join(+ f""" <li class="tile">+ {icon(name)}+ <h3>{title}{f' <span class="new">{f["new_tag"]}</span>' if new else ""}</h3>+ <p>{keys(text)}</p>+ </li>""" for name, title, text, new in f["grid"])+ moved = MOVED_ANCHORS.replace("MOVED", json.dumps({+ "how": HOW, "multi-uplink": HOW + "#multi-uplink", "install": DOWNLOAD,+ "faq": FAQ, "security": SECURITY, "specs": HOW + "#specs",+ }))return f"""<!doctype html><html lang="{hl}"><head>- <meta charset="utf-8">- <meta name="viewport" content="width=device-width, initial-scale=1">- <title>{c["title"]}</title>- <meta name="description" content="{esc(c["description"])}">- <link rel="canonical" href="{SITE}{path}">-{alternates}- <link rel="alternate" hreflang="x-default" href="{SITE}">- <meta name="theme-color" content="#141416">- <meta property="og:type" content="website">- <meta property="og:site_name" content="{c["brand"]}">- <meta property="og:title" content="{esc(c["og_title"])}">- <meta property="og:description" content="{esc(c["og_description"])}">- <meta property="og:url" content="{SITE}{path}">- <meta property="og:image" content="{SITE}assets/{c["og_image"]}">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">- <meta property="og:locale" content="{locale}">-{"".join(f' <meta property="og:locale:alternate" content="{l}">{chr(10)}' for l in others)} <meta name="twitter:card" content="summary_large_image">- <link rel="icon" href="{a}favicon.svg" type="image/svg+xml">- <link rel="icon" href="{a}favicon-32.png" sizes="32x32" type="image/png">- <link rel="apple-touch-icon" href="{a}apple-touch-icon.png">- <link rel="stylesheet" href="{a}site.css">-{REDIRECT if code == "zh" else ""} <script type="application/ld+json">+{head_meta(c, code, path, c["title"], c["description"], c["og_title"], c["og_description"], a)}{REDIRECT if code == "zh" else ""}{moved} <script type="application/ld+json">{jsonld(c, code, path, shots)}</script></head>@@ -446,7 +539,7 @@ def home(code: str) -> str:<main id="main"><section class="hero"><div class="wrap">- <a class="release-note" href="{OFFICIAL}">{esc(c["official"]["badge"])}</a>+ <a class="release-note" href="{FEATURES}#quick-paste">{keys(f["badge"])}</a><h1 class="display">{c["h1"]}</h1><p class="lede">{c["lede"]}</p>{cta(c, "", START, tour_ui["watch"])}<div class="stage" data-play role="img" aria-label="{esc(c["stage_label"])}">@@ -476,36 +569,32 @@ def home(code: str) -> str:</div></section>- <section class="section" id="deploy" aria-labelledby="deploy-title">- <div class="wrap">- <h2 id="deploy-title">{c["paths_h2"]}</h2>- <p class="intro">{c["paths_intro"]}</p>- {paths(c, "")}- <p class="note">{fill(c["paths_after"], links)}</p>- </div>- </section>-- <section class="section" aria-labelledby="history-title">+ <section class="section spotlight" id="quick-paste" aria-labelledby="qp-title"><div class="wrap">- <h2 id="history-title">{c["history_h2"]}</h2>- <p class="intro">{c["history_intro"]}</p>- <figure class="shot">- <img src="{up}{shots}history-dark.png" width="2112" height="1472" alt="{esc(c["history_alt"])}">+ <p class="kicker"><span class="new">{f["kicker_new"]}</span></p>+ <h2 id="qp-title">{keys(f["home_qp_h2"])}</h2>+ <p class="intro">{keys(f["home_qp_intro"])}</p>+ <figure class="spot" data-reveal>+ <div class="spot-keys" aria-hidden="true">+ <span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span>+ </div>+ <img src="{up}{shots}card-picker-dark.png" width="1280" height="1080" loading="lazy" alt="{esc(f["home_qp_alt"])}"></figure>+ <p class="more"><a href="{FEATURES}#quick-paste">{f["home_qp_link"]}</a></p></div></section>- <section class="section" aria-labelledby="flow-title">+ <section class="section" id="features" aria-labelledby="grid-title"><div class="wrap">- <h2 id="flow-title">{c["flow_h2"]}</h2>- <p class="intro">{c["flow_intro"]}</p>- <ol class="flow">-{flow}- </ol>+ <h2 id="grid-title">{f["grid_h2"]}</h2>+ <ul class="tiles">+{tiles}+ </ul>+ <p class="more"><a href="{FEATURES}">{f["grid_more"]}</a></p></div></section>- <section class="section" aria-labelledby="why-title">+ <section class="section" id="why" aria-labelledby="why-title"><div class="wrap"><h2 id="why-title">{c["why_h2"]}</h2><p class="intro">{c["why_intro"]}</p>@@ -521,9 +610,377 @@ def home(code: str) -> str:</div></section>- <section class="section" id="how" aria-labelledby="how-title">+ <section class="section" id="deploy" aria-labelledby="deploy-title">+ <div class="wrap">+ <h2 id="deploy-title">{c["paths_h2"]}</h2>+ <p class="intro">{c["paths_intro"]}</p>+ {paths(c, "")}+ <p class="note">{fill(c["paths_after"], links)}</p>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">{c["closing"]}</h2>{cta(c, "", START)}+ <a class="source" href="{REPO}">{c["source"]}</a>+ </div>+ </section>+ </main>++{footer(c, code, up)}++ <dialog class="tour-dialog" aria-label="{esc(tour_ui["title"])}">+ <form method="dialog"><button class="tour-close" aria-label="{esc(tour_ui["close"])}">×</button></form>+ <iframe title="{esc(tour_ui["title"])}" data-src="{TOUR}?embed" allow="fullscreen" allowfullscreen></iframe>+ </dialog>+ <script src="{a}site.js" defer></script>+{ANALYTICS}</body>+</html>+"""+++# ─────────────────────────── 功能页 ───────────────────────────++# 快捷窗口与复制记录里每种记录的小图标,照 App 里的 Cupertino 图标画,16×16+ROW_ICONS = {+ "text": '<path d="M3 4.5h10M3 8h10M3 11.5h6.5"/>',+ "link": '<path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/>'+ '<path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/>',+ "image": '<rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/>'+ '<path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/>',+ "files": '<path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/>'+ '<path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/>',+ "file": '<path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/>',+ "search": '<circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/>',+}+STAR = ('<svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" '+ 'd="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>')+++ON = ' class="on"'+++def row_icon(name: str) -> str:+ return (f'<svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" '+ f'stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">{ROW_ICONS[name]}</svg>')+++def kbd(mac: str, pc: str) -> str:+ """底栏与按键提示里的键帽:Mac 与 Windows、Linux 各一种。"""+ if mac == pc:+ return f"<kbd>{mac}</kbd>"+ return f'<kbd class="k-mac">{mac}</kbd><kbd class="k-pc">{pc}</kbd>'+++def qp_demo(f: dict, app: dict) -> str:+ """快捷粘贴的演示:写邮件时按 ⌥V,搜到发票抬头,回车粘贴进正文。+ 没有脚本时停在搜到结果的样子;features.js 按滚动的进度一步步演示。"""+ rows = []+ hit = 0+ for i, (kind, text, meta, starred, match) in enumerate(f["qp_rows"]):+ if match:+ hit += 1+ num = f'<span class="n n-all">{i + 1}</span>' if i < 9 else '<span class="n n-all"></span>'+ search_num = (f'<span class="n n-hit"><span class="k-mac">⌘{hit}</span><span class="k-pc">Alt+{hit}</span></span>'+ if match else "")+ rows.append(+ f'<li class="qp-row{" hit" if match else ""}{" first" if match and hit == 1 else ""}{" top" if i == 0 else ""}">'+ f'{num}{search_num}{row_icon(kind)}<span class="t">{esc(text)}</span>'+ f'<span class="m">{STAR if starred else ""}{esc(meta)}</span></li>')+ tabs = "".join(+ f'<span{ON if i == 0 else ""}>{esc(app[k])}</span>'+ for i, k in enumerate(("filterAll", "filterText", "filterLink", "filterImage", "filterFile", "navFavorites")))+ footer = (f'<span>{kbd("↩", "Enter")}{esc(app["pickerPaste"])}</span>'+ f'<span>{kbd("⇧↩", "Shift+Enter")}{esc(app["pickerPlainText"])}</span>'+ f'<span>{kbd("⌘↩", "Ctrl+Enter")}{esc(app["pickerCopyOnly"])}</span>'+ f'<span>{kbd("⌘D", "Ctrl+D")}{esc(app["favoriteAction"])}</span>'+ f'<span>{kbd("esc", "Esc")}{esc(app["close"])}</span>')+ typing = json.dumps(f["qp_typing"], ensure_ascii=False)+ query, _ = f["qp_typing"][-1]+ pasted = next(text for _, text, _, _, match in f["qp_rows"] if match)+ body = "".join(f"<p>{esc(line)}</p>" for line in f["mail_body"][:-1])+ last = f["mail_body"][-1]+ return f"""<div class="qp-stage" role="img" aria-label="{esc(f["qp_label"])}" data-typing="{esc(typing)}">+ <div class="mail">+ <div class="mail-bar"><i></i><i></i><i></i><span>{esc(f["mail_window"])}</span></div>+ <div class="mail-field"><span>{esc(f["mail_to_label"])}</span><b>{esc(f["mail_to"])}</b></div>+ <div class="mail-field"><span>{esc(f["mail_subject_label"])}</span><b>{esc(f["mail_subject"])}</b></div>+ <div class="mail-body">{body}<p>{esc(last)}</p><p class="mail-line"><span class="pasted">{esc(pasted)}</span><i class="caret"></i></p></div>+ </div>+ <div class="press press-open" aria-hidden="true"><span class="k-mac"><kbd>⌥</kbd><kbd>V</kbd></span><span class="k-pc"><kbd>Alt</kbd><kbd>V</kbd></span></div>+ <div class="press press-enter" aria-hidden="true">{kbd("↩", "Enter")}</div>+ <div class="picker">+ <div class="qp-search">{row_icon("search")}<span class="field"><span class="q">{esc(query)}</span><i class="caret"></i><span class="ph">{esc(app["pickerSearch"])}</span></span></div>+ <div class="qp-tabs">{tabs}</div>+ <ol class="qp-rows">{"".join(rows)}</ol>+ <div class="qp-foot">{footer}</div>+ </div>+ </div>"""+++def filter_demo(f: dict, app: dict) -> str:+ """细节一格:复制记录按类型筛选,features.js 轮流点各个页签。"""+ kinds = [("all", "filterAll"), ("text", "filterText"), ("link", "filterLink"), ("image", "filterImage"),+ ("file", "filterFile"), ("fav", "navFavorites")]+ tabs = "".join(f'<span data-tab="{k}"{ON if k == "all" else ""}>{esc(app[key])}</span>' for k, key in kinds)+ rows = "".join(+ f'<li data-kind="{kind}"{" data-fav" if fav else ""}>{row_icon(kind)}<span class="t">{esc(text)}</span>'+ f'{STAR if fav else ""}</li>' for kind, text, fav in f["filter_rows"])+ return f'<div class="mini" aria-hidden="true"><div class="seg">{tabs}</div><ul class="mini-rows">{rows}</ul></div>'+++def features_page(code: str) -> str:+ c = load(code)+ f = features_copy(code)+ app = app_strings(code)+ path, hl, _, _ = LANGS[code]+ sub = FEATURES+ up = "../" * (path + sub).count("/")+ a = up + "assets/"+ base = up + path+ shots = up + shots_dir(code)+ _, tour_ui, _ = tour_copy(code, c)++ def facts(items: list) -> str:+ return "\n".join(f' <li><h3>{keys(t)}</h3><p>{keys(d)}</p></li>' for t, d in items)++ steps = "\n".join(+ f' <li data-step="{i}"><span class="num">{i + 1}</span><h3>{keys(t)}</h3><p>{keys(d)}</p></li>'+ for i, (t, d) in enumerate(f["qp_steps"]))+ numbers = "\n".join(+ f' <div><dt><b>{esc(n)}</b>{f" <span>{esc(u)}</span>" if u else ""}</dt><dd>{esc(d)}</dd></div>'+ for n, u, d in f["numbers"])+ hits = "".join(f"<li>{row_icon('file' if i == 0 else 'text')}<span>{esc(h)}</span></li>"+ for i, h in enumerate(f["search_hits"]))+ new = f'<span class="new">{f["new_tag"]}</span>'+ n = f["net_label"]++ return f"""<!doctype html>+<html lang="{hl}">+<head>+{head_meta(c, code, path + sub, f["title"], f["description"], f["title"], f["description"], a)} <link rel="stylesheet" href="{a}features.css">+</head>+<body class="features">+ <a class="skip" href="#main">{c["skip"]}</a>++{header(c, code, up, sub)}++ <main id="main">+ <section class="f-hero">+ <div class="wrap">+ <p class="eyebrow">{f["eyebrow"]}</p>+ <h1 class="display">{f["h1"]}</h1>+ <p class="lede">{f["lede"]}</p>+ <div class="cta">+ <a class="button" href="{base}{DOWNLOAD}">{DOWN}{c["dl_button"]}</a>+ <a class="button quiet" href="{base}{TOUR}"><span aria-hidden="true">▶</span> {esc(tour_ui["watch"])}</a>+ </div>+ </div>+ <figure class="f-hero-shot" data-zoom>+ <img src="{shots}history-dark.png" width="2112" height="1472" alt="{esc(f["hero_alt"])}">+ </figure>+ </section>++ <section class="f-section" id="sync" aria-labelledby="sync-title">+ <div class="wrap">+ <h2 class="f-h2" id="sync-title">{f["sync_h2"]}</h2>+ <p class="f-intro">{keys(f["sync_intro"])}</p>+ <div class="trio" data-reveal aria-hidden="true">+ <div class="dev"><div class="scr"><span class="doc">{LINES}</span></div><b>MacBook</b>{kbd("⌘C", "⌘C")}</div>+ <div class="dev"><div class="scr"><span class="doc">{LINES}</span></div><b>Windows</b>{kbd("Ctrl+V", "Ctrl+V")}</div>+ <div class="dev"><div class="scr"><span class="doc">{LINES}</span></div><b>Linux</b>{kbd("Ctrl+V", "Ctrl+V")}</div>+ </div>+ <ul class="facts">+{facts(f["sync_facts"])}+ </ul>+ </div>+ </section>++ <section class="f-section qp" id="quick-paste" aria-labelledby="qp-title">+ <div class="wrap">+ <p class="kicker"><span class="new">{f["kicker_new"]}</span></p>+ <h2 class="f-h2" id="qp-title">{keys(f["qp_h2"])}</h2>+ <p class="f-intro">{keys(f["qp_intro"])}</p>+ </div>+ <div class="qp-track" data-scene>+ <div class="qp-sticky">+ {qp_demo(f, app)}+ <ol class="qp-steps">+{steps}+ </ol>+ </div>+ </div>+ <div class="wrap">+ <p class="f-note">{f["qp_note"]}</p>+ </div>+ </section>++ <section class="f-section" id="favorites" aria-labelledby="fav-title">+ <div class="wrap">+ <p class="kicker"><span class="new">{f["kicker_new"]}</span></p>+ <h2 class="f-h2" id="fav-title">{f["fav_h2"]}</h2>+ <p class="f-intro">{f["fav_intro"]}</p>+ <figure class="f-shot" data-reveal>+ <img src="{shots}favorites-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(f["fav_alt"])}">+ </figure>+ <ul class="facts">+{facts(f["fav_points"])}+ </ul>+ </div>+ </section>++ <section class="f-section" id="details" aria-labelledby="details-title">+ <div class="wrap">+ <h2 class="f-h2" id="details-title">{f["details_h2"]}</h2>+ <div class="bento">+ <article class="cell wide" data-reveal data-filter>+ <h3>{f["filter_title"]} {new}</h3>+ <p>{f["filter_text"]}</p>+ {filter_demo(f, app)}+ </article>+ <article class="cell wide hover-cell" data-reveal>+ <h3>{f["hover_title"]} {new}</h3>+ <p>{f["hover_text"]}</p>+ <div class="crop"><img src="{shots}hover-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(f["hover_alt"])}"></div>+ </article>+ <article class="cell" data-reveal data-search>+ <h3>{f["search_title"]}</h3>+ <p>{f["search_text"]}</p>+ <div class="mini" aria-hidden="true">+ <div class="mini-search">{row_icon("search")}<span class="q" data-q="{esc(f["search_query"])}">{esc(f["search_query"])}</span><i class="caret"></i></div>+ <ul class="mini-rows hits">{hits}</ul>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>{f["big_title"]}</h3>+ <p>{f["big_text"]}</p>+ <div class="mini big" aria-hidden="true">+ {row_icon("file")}<div><b>{esc(f["big_file"])}</b><span>{esc(f["big_meta"])}</span><i class="bar"><i></i></i></div>+ <span class="receive">{esc(f["big_button"])}</span>+ </div>+ </article>+ <article class="cell" data-reveal>+ <h3>{f["folder_title"]}</h3>+ <p>{f["folder_text"]}</p>+ <ul class="mini tree" aria-hidden="true">+ <li>{icon("folder")}design-assets</li>+ <li>{row_icon("image")}logo.svg</li>+ <li>{row_icon("image")}[email protected]</li>+ <li>{icon("folder")}fonts</li>+ </ul>+ </article>+ <article class="cell full" data-reveal>+ <div>+ <h3>{f["names_title"]}</h3>+ <p>{f["names_text"]}</p>+ </div>+ <div class="mini names" aria-hidden="true">+ <div><span>Mac</span><code>{esc(f["names_from"])}</code></div>+ <div><span>Windows</span><code>{esc(f["names_to"])}</code></div>+ </div>+ </article>+ </div>+ </div>+ </section>++ <section class="f-section" id="network" aria-labelledby="net-title">+ <div class="wrap">+ <h2 class="f-h2" id="net-title">{f["net_h2"]}</h2>+ <p class="f-intro">{f["net_intro"]}</p>+ <figure class="net" data-reveal>+ <svg viewBox="0 0 800 330" role="img" aria-label="{esc(n)}">+ <rect class="n-svc" x="300" y="14" width="200" height="56" rx="14"/>+ <text class="n-title" x="400" y="49" text-anchor="middle">{esc(f["net_service"])}</text>+ <rect class="n-net" x="20" y="130" width="300" height="180" rx="22"/>+ <rect class="n-net" x="480" y="130" width="300" height="180" rx="22"/>+ <text class="n-label" x="44" y="164">{esc(f["net_home"])}</text>+ <text class="n-label" x="756" y="164" text-anchor="end">{esc(f["net_office"])}</text>+ <path class="n-sig" d="M170 200V42H300"/>+ <path class="n-sig" d="M630 200V42H500"/>+ <rect class="n-dev" x="120" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M105 278h130"/>+ <rect class="n-dev" x="580" y="205" width="100" height="62" rx="7"/><path class="n-dev" d="M565 278h130"/>+ <path class="n-direct" d="M235 236H565"/>+ <text class="n-note" x="400" y="222" text-anchor="middle">{esc(f["net_direct"])}</text>+ </svg>+ </figure>+ <ul class="facts">+{facts(f["net_points"])}+ </ul>+ <p class="more"><a href="{base}{START}#server">{f["net_links"]}</a><a href="{base}{HOW}">{f["net_how"]}</a></p>+ </div>+ </section>++ <section class="f-section" id="numbers" aria-labelledby="numbers-title">+ <div class="wrap">+ <h2 class="f-h2" id="numbers-title">{f["numbers_h2"]}</h2>+ <dl class="numbers" data-reveal>+{numbers}+ </dl>+ </div>+ </section>++ <section class="closing" aria-labelledby="closing-title">+ <div class="wrap">+ <h2 class="display" id="closing-title">{f["closing"]}</h2>{cta(c, base, base + START)}+ </div>+ </section>+ </main>++{footer(c, code, up, sub)}++ <script src="{a}site.js" defer></script>+ <script src="{a}features.js" defer></script>+{ANALYTICS}</body>+</html>+"""+++# ─────────────────────────── 从首页挪出去的三页 ───────────────────────────+++def sub_hero(c: dict, code: str, sub: str, h1: str, lede: str) -> str:+ """工作原理、安全、常见问题三页的开头:面包屑、大标题、一句说明。"""+ path = LANGS[code][0]+ up = "../" * (path + sub).count("/")+ home = up + (path or "./")+ return f"""+ <main id="main">+ <section class="hero guide-hero">+ <div class="wrap">+ <p class="crumb"><a href="{home}">{c["brand"]}</a></p>+ <h1 class="display">{h1}</h1>+ <p class="lede">{lede}</p>+ </div>+ </section>+"""+++def how_page(code: str) -> str:+ """工作原理:按下复制之后、连接方式的示意图、多出口网络与打洞实验、出问题时、技术规格。"""+ c = load(code)+ f = features_copy(code)+ path = LANGS[code][0]+ up = "../" * (path + HOW).count("/")+ flow = "\n".join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in c["flow"])+ uplink = "\n".join(f" <li><strong>{s}</strong>{t}</li>" for s, t in c["uplink_points"])+ lab = "\n".join(f" <tr><td>{s}</td><td>{r}</td></tr>" for s, r in c["lab_rows"])+ fallbacks = "\n".join(f" <div><dt>{t}</dt><dd>{d}</dd></div>" for t, d in c["fallbacks"])+ specs = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in c["specs"])+ d = c["diagram"]+ return page_top(c, code, HOW, f["how_title"], f["how_lede"]) + sub_hero(c, code, HOW, c["how_h2"], f["how_lede"]) + f"""+ <section class="section" aria-labelledby="flow-title">+ <div class="wrap">+ <h2 id="flow-title">{c["flow_h2"]}</h2>+ <p class="intro">{c["flow_intro"]}</p>+ <ol class="flow">+{flow}+ </ol>+ </div>+ </section>++ <section class="section" id="diagram" aria-labelledby="how-title"><div class="wrap">- <h2 id="how-title">{c["how_h2"]}</h2>+ <h2 id="how-title">{c["diagram"]["title"]}</h2><p class="intro">{c["how_intro"]}</p><figure class="diagram"><svg viewBox="0 0 960 400" role="img" aria-labelledby="diagram-title diagram-desc">@@ -591,21 +1048,7 @@ def home(code: str) -> str:</div></section>- <section class="section" aria-labelledby="security-title">- <div class="wrap">- <h2 id="security-title">{c["security_h2"]}</h2>- <div class="cols">- <ul class="points">-{security}- </ul>- <figure class="figure-card">- <img src="{up}{shots}card-verify-dark.png" width="1120" height="800" loading="lazy" alt="{esc(c["verify_alt"])}">- </figure>- </div>- </div>- </section>-- <section class="section" aria-labelledby="fallback-title">+ <section class="section" id="fallbacks" aria-labelledby="fallback-title"><div class="wrap"><h2 id="fallback-title">{c["fallback_h2"]}</h2><p class="intro">{c["fallback_intro"]}</p>@@ -615,46 +1058,7 @@ def home(code: str) -> str:</div></section>- <section class="section" id="install" aria-labelledby="install-title">- <div class="wrap">- <h2 id="install-title">{c["install_h2"]}</h2>- <p class="intro">{fill(c["install_intro"], links)}</p>- <div class="install">- <div>- <h3>{LAPTOP}Mac</h3>- <ol>-{mac_steps}- </ol>- <a class="button" href="{DOWNLOAD}#macos">{DOWN}{c["dl_mac"]}</a>- </div>- <div>- <h3>{DESKTOP}Windows</h3>- <ol>-{win_steps}- </ol>- <a class="button" href="{DOWNLOAD}#windows">{DOWN}{c["dl_win"]}</a>- </div>- <div>- <h3>{DESKTOP}Linux</h3>- <ol>-{linux_steps}- </ol>- <a class="button" href="{DOWNLOAD}#linux">{DOWN}{c["dl_linux"]}</a>- </div>- </div>- <div class="install-more">- <h3>{SERVER}{c["server_h3"]}</h3>- <p class="small">{c["server_intro"]}</p>- <ul class="opts">-{opts}- </ul>- <a class="button quiet" href="{START}#server">{c["server_compare"]}</a>- </div>- <p class="pairing">{c["pairing"]}</p>- </div>- </section>-- <section class="section" aria-labelledby="specs-title">+ <section class="section" id="specs" aria-labelledby="specs-title"><div class="wrap"><h2 id="specs-title">{c["specs_h2"]}</h2><div class="table-scroll">@@ -666,34 +1070,65 @@ def home(code: str) -> str:</div></div></section>+ </main>+""" + page_bottom(c, code, HOW)- <section class="section" id="faq" aria-labelledby="faq-title">++def security_page(code: str) -> str:+ c = load(code)+ f = features_copy(code)+ path = LANGS[code][0]+ up = "../" * (path + SECURITY).count("/")+ security = "\n".join(f" <li><strong>{s}</strong>{t}</li>" for s, t in c["security_points"])+ return page_top(c, code, SECURITY, f["security_title"], f["security_lede"]) + sub_hero(+ c, code, SECURITY, c["security_h2"], f["security_lede"]) + f"""+ <section class="section"><div class="wrap">- <h2 id="faq-title">{c["faq_h2"]}</h2>- <div class="faq">-{faq}+ <div class="cols">+ <ul class="points">+{security}+ </ul>+ <figure class="figure-card">+ <img src="{up}{shots_dir(code)}card-verify-dark.png" width="1120" height="800" alt="{esc(c["verify_alt"])}">+ </figure></div>+ <p class="more"><a href="{up}{path}{PRIVACY}">{f["privacy_link"]}</a></p></div></section>+ </main>+""" + page_bottom(c, code, SECURITY)- <section class="closing" aria-labelledby="closing-title">++def faq_page(code: str) -> str:+ c = load(code)+ f = features_copy(code)+ path = LANGS[code][0]+ up = "../" * (path + FAQ).count("/")+ base = up + path+ links = {"official": base + OFFICIAL, "lan": base + LAN, "cloud": base + CLOUD, "server": base + GUIDE,+ "ts": base + TAILSCALE, "start": base + START}+ faq_ld = json.dumps({+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {"@type": "Question", "name": q,+ "acceptedAnswer": {"@type": "Answer", "text": " ".join(text_of(p) for p in answer)}}+ for q, answer in c["faq"]+ ],+ }, ensure_ascii=False, indent=2)+ top = page_top(c, code, FAQ, f["faq_title"], f["faq_lede"]).replace(+ "</head>", ' <script type="application/ld+json">\n' + faq_ld + "\n </script>\n</head>", 1)+ return top + sub_hero(c, code, FAQ, c["faq_h2"], f["faq_lede"]) + f"""+ <section class="section"><div class="wrap">- <h2 class="display" id="closing-title">{c["closing"]}</h2>{cta(c, "", START)}- <a class="source" href="{REPO}">{c["source"]}</a>+ <div class="faq">+{faq_list(c["faq"], links)}+ </div>+ <p class="more"><a href="{REPO}/issues">{f["faq_more"]}</a></p></div></section></main>--{footer(c, code, up)}-- <dialog class="tour-dialog" aria-label="{esc(tour_ui["title"])}">- <form method="dialog"><button class="tour-close" aria-label="{esc(tour_ui["close"])}">×</button></form>- <iframe title="{esc(tour_ui["title"])}" data-src="{TOUR}?embed" allow="fullscreen" allowfullscreen></iframe>- </dialog>- <script src="{a}site.js" defer></script>-{ANALYTICS}</body>-</html>-"""+""" + page_bottom(c, code, FAQ)# ─────────────────────────── 在局域网里部署服务器 ───────────────────────────@@ -917,7 +1352,7 @@ def page_top(c: dict, code: str, sub: str, title: str, description: str) -> str:<link rel="icon" href="{a}favicon-32.png" sizes="32x32" type="image/png"><link rel="apple-touch-icon" href="{a}apple-touch-icon.png"><link rel="stylesheet" href="{a}site.css">-</head>+{PLATFORM}</head><body><a class="skip" href="#main">{c["skip"]}</a>@@ -2277,6 +2712,10 @@ def main() -> None:write(DOCS / path / DOWNLOAD / "index.html", download_page(code))write(DOCS / path / PRIVACY / "index.html", privacy_page(code))write(DOCS / path / OFFICIAL / "index.html", official_page(code))+ write(DOCS / path / FEATURES / "index.html", features_page(code))+ write(DOCS / path / HOW / "index.html", how_page(code))+ write(DOCS / path / SECURITY / "index.html", security_page(code))+ write(DOCS / path / FAQ / "index.html", faq_page(code))for md_name, page in DESIGN_DOCS.items():write(DOCS / "design" / f"{page}.html", design_page(md_name, page))write(DOCS / "404.html", not_found())diff --git a/tools/site/content/en.py b/tools/site/content/en.pyindex bd31f87..9cb2cd4 100644--- a/tools/site/content/en.py+++ b/tools/site/content/en.py@@ -104,13 +104,6 @@ C = {},},- "history_h2": "Everything you copied, on every computer",- "history_intro": "History keeps the last 3 days, ready to go back on the clipboard; click an image to preview it. "- "Files under 50 MB have already arrived by the time you switch computers, and larger ones are a click away. "- "To find something you copied earlier, search by its text or file name.",- "history_alt": "PasteFerry history: files, images and text from a MacBook Air and a Mac mini; a large file shows a button "- "to pull it to this device",-"flow_h2": "What happens when you copy","flow_intro": "Text, images, files and whole folders all take the same path.","flow": [@@ -213,33 +206,7 @@ C = {"install_h2": "Install","install_intro": "Install the app on each computer. On the same network you can pair right away; across networks, pick a way ""for them to find each other. First time? Follow the <a href=\"{start}\">quick start</a>.",- "mac_steps": [- "Download the DMG, open it and drag PasteFerry into Applications.<span class=\"aside\">There's one for Apple silicon "- "and one for Intel; the download page shows how to tell which your Mac has.</span>",- "Open it from Applications.<span class=\"aside\">The first time, macOS says it can't verify the developer: PasteFerry "- "isn't notarized by Apple yet. Go to System Settings → Privacy & Security and click Open Anyway near the bottom. "- "You only do this once.</span>",- "Click Turn on background sync. When macOS asks whether PasteFerry may read the clipboard or find devices on your local "- "network, allow both.",- 'For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.',- ],- "win_steps": [- "Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed."- "<span class=\"aside\">PasteFerry isn't code-signed yet, so Windows says \"Windows protected your PC\": click More info, "- f"then Run anyway. To skip the installer, get the <a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">portable zip</a>.</span>",- "Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it "- "keeps running in the notification area.",- 'For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.',- ],- "linux_steps": [- "On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>; "- "on other distributions, download the tar.gz, extract it and run <code>./PasteFerry/install.sh</code>.",- "Open PasteFerry from the app menu and click Turn on background sync. From then on it starts when you log in.",- 'For different networks, enable Settings → Use official service on each computer. No server address is needed. Custom hosting remains optional.',- ],- "server_h3": "Ways to connect","server_intro": 'Same network? Install and pair. Different networks? Enable official access without hosting a server. Custom servers and Tailscale remain available when you prefer to manage the connection yourself.',- "server_compare": 'Compare connection options',"copy": "Copy","copied": "Copied","pairing": 'Show a pairing code on one computer, enter it on the other, and compare both fingerprint lines before confirming. Existing pairings are kept. Official access needs no peer IP. Enter an address only for LAN subnets or Tailscale.',diff --git a/tools/site/content/features.py b/tools/site/content/features.pynew file mode 100644index 0000000..2bcdfc5--- /dev/null+++ b/tools/site/content/features.py@@ -0,0 +1,485 @@+"""「功能」页(features/)与首页新版的文案。每条依次是 zh、zh-tw、zh-hk、en、ja,不按语言回退。++按键写成占位符,生成页面时换成 Mac 与 Windows、Linux 两种写法,由 site.js 按访问者的系统显示其中一种:+{key} ⌥V / Alt+V,{enter} ↩ / Enter,{plain} ⇧↩ / Shift+Enter,{copyonly} ⌘↩ / Ctrl+Enter,+{fav} ⌘D / Ctrl+D,{paste} ⌘V / Ctrl+V,{copy} ⌘C / Ctrl+C。++快捷窗口演示里的页签、底栏等界面文字直接取自 App 的文案(ui/tool/l10n/strings.py),和 App 里一模一样。+"""++LANGUAGES = ("zh", "zh-tw", "zh-hk", "en", "ja")++COPY = {+ # ── 顶栏 ──+ "nav_features": ("功能", "功能", "功能", "Features", "機能"),+ "nav_more": ("更多", "更多", "更多", "More", "その他"),+ "nav_security": ("安全与隐私", "安全與隱私", "安全與私隱", "Security", "セキュリティ"),+ "nav_changelog": ("更新记录", "更新記錄", "更新記錄", "Changelog", "更新履歴"),+ "nav_more_label": ("更多页面", "更多頁面", "更多頁面", "More pages", "その他のページ"),++ # ── 首页 ──+ "badge": ("2.4 新功能:按 {key} 快捷粘贴 →", "2.4 新功能:按 {key} 快速貼上 →", "2.4 新功能:按 {key} 快速貼上 →",+ "New in 2.4: quick paste with {key} →", "2.4 の新機能:{key} でクイックペースト →"),+ "home_qp_h2": ("按 {key},<br>最近复制的都在手边。", "按 {key},<br>最近複製的都在手邊。", "按 {key},<br>最近複製的都在手邊。",+ "Press {key}.<br>Everything you copied, right there.", "{key} を押せば、<br>コピーした内容がすぐそこに。"),+ "home_qp_intro": (+ "在任何 App 里按一下,复制记录就出现在屏幕中间。按数字或回车,选中的内容直接粘贴进去;常用的内容收藏起来,随时取用。",+ "在任何 App 裡按一下,複製記錄就出現在螢幕中間。按數字或 Enter,選取的內容直接貼上;常用的內容收藏起來,隨時取用。",+ "在任何程式裏按一下,複製記錄就出現在螢幕中間。按數字或 Enter,選取的內容直接貼上;常用的內容收藏起來,隨時取用。",+ "Press it in any app and your clipboard history appears in the middle of the screen. Press a number or Return and the item is pasted where you were typing. Keep the things you reuse in Favorites.",+ "どのアプリでも押すだけで、画面の中央に履歴が出ます。数字かリターンを押せば、選んだ内容がそのままペーストされます。よく使うものはお気に入りに。",+ ),+ "home_qp_link": ("了解快捷粘贴 →", "了解快速貼上 →", "了解快速貼上 →", "More about quick paste →", "クイックペーストについて →"),+ "home_qp_alt": (+ "快捷粘贴窗口:顶部是搜索框和全部、文本、链接、图片、文件、收藏六个页签,下面是带序号的复制记录,底栏是按键说明",+ "快速貼上視窗:頂部是搜尋框和全部、文字、連結、圖片、檔案、收藏六個分頁,下面是帶序號的複製記錄,底列是按鍵說明",+ "快速貼上視窗:頂部是搜尋框和全部、文字、連結、圖片、檔案、收藏六個分頁,下面是帶序號的複製記錄,底列是按鍵說明",+ "The quick paste window: a search field and six tabs (All, Text, Links, Images, Files, Favorites), numbered history items, and key hints at the bottom",+ "クイックペーストウィンドウ:上に検索欄と「すべて・テキスト・リンク・画像・ファイル・お気に入り」のタブ、番号付きの履歴、下にキーの説明",+ ),+ "grid_h2": ("不只是同步剪贴板。", "不只是同步剪貼簿。", "不只是同步剪貼簿。",+ "More than a shared clipboard.", "クリップボードの同期だけじゃない。"),+ "grid_more": ("查看全部功能 →", "查看全部功能 →", "查看全部功能 →", "See all features →", "すべての機能を見る →"),+ "grid": (+ [+ ("keys", "快捷粘贴", "按 {key} 呼出复制记录,选中就粘贴。", True),+ ("star", "收藏", "常用的内容另存一份,不会过期。", True),+ ("folder", "文件与文件夹", "50 MB 以内复制时就已传好,更大的需要时再取。", False),+ ("clock", "复制记录", "所有设备复制过的都在这里,能搜索,能按类型筛选。", False),+ ("globe", "跨网络", "开启官方服务,家里和公司之间也能同步。", False),+ ("lock", "端到端加密", "优先直连,服务器看不到你复制了什么。", False),+ ],+ [+ ("keys", "快速貼上", "按 {key} 叫出複製記錄,選取就貼上。", True),+ ("star", "收藏", "常用的內容另存一份,不會過期。", True),+ ("folder", "檔案與資料夾", "50 MB 以內複製時就已傳好,更大的需要時再取。", False),+ ("clock", "複製記錄", "所有裝置複製過的都在這裡,能搜尋,能按類型篩選。", False),+ ("globe", "跨網路", "開啟官方服務,家裡和公司之間也能同步。", False),+ ("lock", "端對端加密", "優先直連,伺服器看不到你複製了什麼。", False),+ ],+ [+ ("keys", "快速貼上", "按 {key} 叫出複製記錄,選取就貼上。", True),+ ("star", "收藏", "常用的內容另存一份,不會過期。", True),+ ("folder", "檔案與資料夾", "50 MB 以內複製時就已傳好,更大的需要時再取。", False),+ ("clock", "複製記錄", "所有裝置複製過的都在這裏,能搜尋,能按類型篩選。", False),+ ("globe", "跨網絡", "開啟官方服務,家裏和公司之間也能同步。", False),+ ("lock", "端對端加密", "優先直連,伺服器看不到你複製了甚麼。", False),+ ],+ [+ ("keys", "Quick paste", "Press {key} for your history; pick an item and it’s pasted.", True),+ ("star", "Favorites", "Keep a copy of what you reuse. It never expires.", True),+ ("folder", "Files and folders", "Up to 50 MB is sent as you copy; larger files on demand.", False),+ ("clock", "History", "Everything copied on every device, searchable and filterable.", False),+ ("globe", "Across networks", "Turn on the official service and sync between home and work.", False),+ ("lock", "End-to-end encrypted", "Direct first. The server can’t see what you copy.", False),+ ],+ [+ ("keys", "クイックペースト", "{key} で履歴を呼び出し、選ぶだけでペースト。", True),+ ("star", "お気に入り", "よく使う内容を別に保存。期限切れになりません。", True),+ ("folder", "ファイルとフォルダ", "50 MB まではコピーした時点で転送済み。大きいものは必要なときに。", False),+ ("clock", "履歴", "すべてのデバイスでコピーした内容をここに。検索も種類別の表示も。", False),+ ("globe", "ネットワークをまたいで", "公式サービスをオンにすれば、自宅と職場の間でも同期。", False),+ ("lock", "エンドツーエンド暗号化", "まず直接接続。サーバーはコピーした内容を見られません。", False),+ ],+ ),+ "new_tag": ("新", "新", "新", "New", "新機能"),+ "kicker_new": ("2.4 新功能", "2.4 新功能", "2.4 新功能", "New in 2.4", "2.4 の新機能"),++ # ── 功能页:页面信息与开头 ──+ "title": ("功能:快捷粘贴、收藏、跨设备复制记录 — 隔空贴", "功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼",+ "功能:快速貼上、收藏、跨裝置複製記錄 — 隔空貼",+ "Features: quick paste, favorites, history across devices — PasteFerry",+ "機能:クイックペースト、お気に入り、デバイスをまたぐ履歴 — PasteFerry"),+ "description": (+ "隔空贴在 Mac、Windows 与 Linux 之间同步剪贴板:复制文字、图片、文件、文件夹,到另一台直接粘贴。"+ "按 ⌥V 或 Alt+V 呼出快捷粘贴,常用内容可以收藏,复制记录能搜索、按类型筛选。",+ "隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一台直接貼上。"+ "按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。",+ "隔空貼在 Mac、Windows 與 Linux 之間同步剪貼簿:複製文字、圖片、檔案、資料夾,到另一部電腦直接貼上。"+ "按 ⌥V 或 Alt+V 叫出快速貼上,常用內容可以收藏,複製記錄能搜尋、按類型篩選。",+ "PasteFerry syncs the clipboard between Mac, Windows and Linux: copy text, images, files or folders and paste them on the other computer. "+ "Press ⌥V or Alt+V for quick paste, keep favorites, and search or filter your history.",+ "PasteFerry は Mac、Windows、Linux の間でクリップボードを同期します。テキスト、画像、ファイル、フォルダをコピーして、別のパソコンでそのままペースト。"+ "⌥V か Alt+V でクイックペースト、お気に入り、履歴の検索と種類別の表示も。",+ ),+ "eyebrow": ("隔空贴的功能", "隔空貼的功能", "隔空貼的功能", "PasteFerry features", "PasteFerry の機能"),+ "h1": ("复制粘贴,<br>本该这么顺手。", "複製貼上,<br>本該這麼順手。", "複製貼上,<br>本應這麼順手。",+ "Copy and paste,<br>the way it should be.", "コピペは、<br>こうあるべき。"),+ "lede": (+ "Mac、Windows、Linux 之间同步剪贴板,复制过的随叫随到。",+ "Mac、Windows、Linux 之間同步剪貼簿,複製過的隨叫隨到。",+ "Mac、Windows、Linux 之間同步剪貼簿,複製過的隨叫隨到。",+ "A clipboard shared by your Mac, Windows and Linux computers, with everything you copied a keystroke away.",+ "Mac、Windows、Linux の間でクリップボードを同期。コピーしたものは、いつでも呼び出せます。",+ ),+ "hero_alt": (+ "隔空贴的复制记录:侧边栏有复制记录、收藏、设备、设置,列表里是来自不同电脑的文字、图片、文件和链接",+ "隔空貼的複製記錄:側邊欄有複製記錄、收藏、裝置、設定,列表裡是來自不同電腦的文字、圖片、檔案和連結",+ "隔空貼的複製記錄:側邊欄有複製記錄、收藏、裝置、設定,列表裏是來自不同電腦的文字、圖片、檔案和連結",+ "PasteFerry’s history: a sidebar with History, Favorites, Devices and Settings, and a list of text, images, files and links from different computers",+ "PasteFerry の履歴:サイドバーに履歴・お気に入り・デバイス・設定、一覧には各パソコンからのテキスト、画像、ファイル、リンク",+ ),++ # ── 跨设备 ──+ "sync_h2": ("在这台复制,<br>到那台粘贴。", "在這台複製,<br>到那台貼上。", "在這部電腦複製,<br>到那部電腦貼上。",+ "Copy here.<br>Paste there.", "こっちでコピー、<br>あっちでペースト。"),+ "sync_intro": (+ "按下 {copy},内容就同步到你的其他电脑,到那边按 {paste} 粘贴。不用同一个账号,Mac、Windows、Linux 随便搭配。",+ "按下 {copy},內容就同步到你的其他電腦,到那邊按 {paste} 貼上。不用同一個帳號,Mac、Windows、Linux 隨意搭配。",+ "按下 {copy},內容就同步到你的其他電腦,到那邊按 {paste} 貼上。不用同一個帳戶,Mac、Windows、Linux 隨意配搭。",+ "Press {copy} and it’s on your other computers. Press {paste} there. No shared account needed — mix Mac, Windows and Linux however you like.",+ "{copy} を押すと、ほかのパソコンに同期されます。向こうで {paste} を押すだけ。同じアカウントは不要で、Mac、Windows、Linux を自由に組み合わせられます。",+ ),+ "sync_facts": (+ [("文字、图片、文件、文件夹", "带格式的文字粘贴到只认纯文本的地方,也不会冒出标签。"),+ ("50 MB 以内,复制时就传好", "更大的先同步一条记录,需要时点一下再取。上限可以调。"),+ ("对方离线也不丢", "这期间复制的,连上后补进对方的复制记录。")],+ [("文字、圖片、檔案、資料夾", "帶格式的文字貼到只認純文字的地方,也不會冒出標籤。"),+ ("50 MB 以內,複製時就傳好", "更大的先同步一筆記錄,需要時點一下再取。上限可以調。"),+ ("對方離線也不會漏", "這段期間複製的,連上後補進對方的複製記錄。")],+ [("文字、圖片、檔案、資料夾", "帶格式的文字貼到只認純文字的地方,也不會冒出標籤。"),+ ("50 MB 以內,複製時就傳好", "更大的先同步一條記錄,需要時按一下再取。上限可以調。"),+ ("對方離線也不會漏", "這段期間複製的,連上後補進對方的複製記錄。")],+ [("Text, images, files, folders", "Formatted text pastes cleanly into plain-text fields, too."),+ ("Up to 50 MB is sent as you copy", "Larger items sync as a record first; fetch them when you need them. The limit is adjustable."),+ ("Nothing lost while offline", "What you copy meanwhile lands in the other computer’s history once it’s back.")],+ [("テキスト、画像、ファイル、フォルダ", "書式付きテキストをプレーンテキストの欄に貼っても、タグは出ません。"),+ ("50 MB までは、コピーした時点で転送済み", "大きいものはまず記録だけ同期し、必要なときに取得。上限は変更できます。"),+ ("相手がオフラインでも失われない", "その間にコピーしたものは、つながった後に相手の履歴へ届きます。")],+ ),++ # ── 快捷粘贴 ──+ "qp_h2": ("按 {key},<br>最近复制的都在手边。", "按 {key},<br>最近複製的都在手邊。", "按 {key},<br>最近複製的都在手邊。",+ "Press {key}.<br>Your history, right where you’re typing.", "{key} で、<br>履歴をその場に。"),+ "qp_intro": (+ "不用切到隔空贴,也不用翻聊天记录。在任何 App 里按一下快捷键,选一条,它就粘贴到你刚才的光标处。",+ "不用切到隔空貼,也不用翻聊天記錄。在任何 App 裡按一下快速鍵,選一筆,它就貼到你剛才的游標處。",+ "不用切換到隔空貼,也不用翻聊天記錄。在任何程式裏按一下快速鍵,選一條,它就貼到你剛才的游標處。",+ "No switching apps, no digging through chats. Press the shortcut in any app, pick an item, and it’s pasted right where your cursor was.",+ "アプリを切り替える必要も、チャットをさかのぼる必要もありません。どのアプリでもショートカットを押して選ぶだけで、カーソルの位置にペーストされます。",+ ),+ "qp_steps": (+ [("按下 {key}", "在任何 App 里都行。窗口出现在屏幕中间,选完自动回到原来的 App。"),+ ("打几个字", "文字和文件名都能搜。不搜的时候,前 9 条按数字直接选。"),+ ("按 {enter},就贴好了", "内容直接粘贴到刚才的光标处。{plain} 粘贴纯文本,{copyonly} 只复制不粘贴。")],+ [("按下 {key}", "在任何 App 裡都行。視窗出現在螢幕中間,選完自動回到原來的 App。"),+ ("打幾個字", "文字和檔名都能搜。不搜的時候,前 9 筆按數字直接選。"),+ ("按 {enter},就貼好了", "內容直接貼到剛才的游標處。{plain} 貼上純文字,{copyonly} 只複製不貼上。")],+ [("按下 {key}", "在任何程式裏都可以。視窗出現在螢幕中間,選完自動回到原來的程式。"),+ ("打幾個字", "文字和檔案名稱都能搜。不搜的時候,頭 9 條按數字直接選。"),+ ("按 {enter},就貼好了", "內容直接貼到剛才的游標處。{plain} 貼上純文字,{copyonly} 只複製不貼上。")],+ [("Press {key}", "In any app. The window opens in the middle of the screen and hands focus back when you’re done."),+ ("Type a few letters", "Search text and file names. Without a search, press 1–9 to pick one of the first nine."),+ ("Press {enter}. Done.", "It’s pasted where your cursor was. {plain} pastes plain text; {copyonly} copies without pasting.")],+ [("{key} を押す", "どのアプリでも。画面の中央に開き、選び終わると元のアプリに戻ります。"),+ ("数文字を入力", "テキストもファイル名も検索できます。検索しないときは、最初の 9 件を数字で選べます。"),+ ("{enter} を押せば完了", "カーソルの位置にペーストされます。{plain} でプレーンテキスト、{copyonly} はコピーだけ。")],+ ),+ "qp_note": (+ "快捷键可以在设置里更换或关闭。Mac 上直接粘贴需要授予「辅助功能」权限,没授权时选中的内容放进剪贴板,再由你按 ⌘V;Linux 的 Wayland 桌面上也是选中后按 Ctrl+V。",+ "快速鍵可以在設定裡更換或關閉。Mac 上直接貼上需要授予「輔助使用」權限,沒授權時選取的內容放進剪貼簿,再由你按 ⌘V;Linux 的 Wayland 桌面上也是選取後按 Ctrl+V。",+ "快速鍵可以在設定裏更換或關閉。Mac 上直接貼上需要授予「輔助使用」權限,未授權時選取的內容放入剪貼簿,再由你按 ⌘V;Linux 的 Wayland 桌面上也是選取後按 Ctrl+V。",+ "You can change or turn off the shortcut in Settings. On a Mac, pasting for you needs the Accessibility permission; without it the item is copied and you press ⌘V. On Linux with Wayland, picked items are copied and you press Ctrl+V.",+ "ショートカットは設定で変更・オフにできます。Mac で直接ペーストするにはアクセシビリティの許可が必要で、許可しない場合はコピーされるので ⌘V で貼り付けます。Linux の Wayland でも、選んだ後に Ctrl+V で貼り付けます。",+ ),+ "qp_label": (+ "演示:在写邮件时按 ⌥V,弹出快捷粘贴窗口;输入「发票」搜到发票抬头,按回车,它被粘贴进邮件正文",+ "示範:寫郵件時按 ⌥V,彈出快速貼上視窗;輸入「發票」搜到發票抬頭,按 Enter,它被貼進郵件內文",+ "示範:寫電郵時按 ⌥V,彈出快速貼上視窗;輸入「發票」搜到發票抬頭,按 Enter,它被貼進電郵內文",+ "Demo: while writing an email, press ⌥V; the quick paste window opens, typing “billing” finds the billing details, and Return pastes them into the email",+ "デモ:メールを書いている途中で ⌥V を押すとクイックペーストが開き、「請求」で検索した請求先をリターンでメール本文にペースト",+ ),++ # 演示:写邮件。光标停在正文最后一行,搜到的那一条粘贴在它后面+ "mail_window": ("新邮件", "新郵件", "新電郵", "New Message", "新規メッセージ"),+ "mail_to_label": ("收件人:", "收件人:", "收件人:", "To:", "宛先:"),+ "mail_to": ("王经理", "王經理", "王經理", "Sarah Chen", "佐藤様"),+ "mail_subject_label": ("主题:", "主旨:", "主旨:", "Subject:", "件名:"),+ "mail_subject": ("开票信息", "發票資訊", "發票資料", "Billing details", "請求先について"),+ "mail_body": (+ ["王经理您好,", "我们的开票信息如下:"],+ ["王經理您好,", "我們的發票資訊如下:"],+ ["王經理你好,", "我們的發票資料如下:"],+ ["Hi Sarah,", "Here are our billing details:"],+ ["佐藤様", "請求先は以下のとおりです。"],+ ),+ # 搜索框里依次出现的样子:(文字, 是否还在输入法里组字)。最后一项是搜索词+ "qp_typing": (+ [("f", True), ("fa", True), ("fa'p", True), ("fa'piao", True), ("发票", False)],+ [("ㄈ", True), ("ㄈㄚ", True), ("ㄈㄚ ㄆ", True), ("ㄈㄚ ㄆㄧㄠˋ", True), ("發票", False)],+ [("發", False), ("發票", False)],+ [("b", False), ("bi", False), ("bil", False), ("bill", False), ("billing", False)],+ [("せ", True), ("せい", True), ("せいきゅ", True), ("せいきゅう", True), ("請求", False)],+ ),+ # 快捷窗口里的记录:(图标, 文字, 附注, 收藏过, 搜索时匹配)。附注里的时间写成 App 里的样子+ "qp_rows": (+ [("text", "会议改到周四下午 3 点,地点不变", "刚刚", False, False),+ ("link", "https://github.com/baiyuze/pasteferry", "2 分钟前", False, False),+ ("image", "图片", "Windows 台式机 · 5 分钟前", True, False),+ ("files", "合同扫描件.pdf 等 3 项", "52 分钟前", False, False),+ ("text", "发票抬头:上海隔空科技有限公司 税号 91310104MA1K000000", "1 小时前", True, True),+ ("text", "docker compose up -d --build", "1 小时前", False, False),+ ("text", "发票寄到财务部,备注订单号", "1 天前", False, True),+ ("text", "pnpm install", "1 天前", False, False)],+ [("text", "會議改到週四下午 3 點,地點不變", "剛剛", False, False),+ ("link", "https://github.com/baiyuze/pasteferry", "2 分鐘前", False, False),+ ("image", "圖片", "Windows 桌機 · 5 分鐘前", True, False),+ ("files", "合約掃描檔.pdf 等 3 項", "52 分鐘前", False, False),+ ("text", "發票抬頭:隔空科技股份有限公司 統一編號 12345678", "1 小時前", True, True),+ ("text", "docker compose up -d --build", "1 小時前", False, False),+ ("text", "發票寄到財務部,備註訂單編號", "1 天前", False, True),+ ("text", "pnpm install", "1 天前", False, False)],+ [("text", "會議改到星期四下午 3 點,地點不變", "剛剛", False, False),+ ("link", "https://github.com/baiyuze/pasteferry", "2 分鐘前", False, False),+ ("image", "圖片", "Windows 桌面電腦 · 5 分鐘前", True, False),+ ("files", "合約掃描本.pdf 等 3 項", "52 分鐘前", False, False),+ ("text", "發票抬頭:隔空科技有限公司 商業登記號碼 12345678", "1 小時前", True, True),+ ("text", "docker compose up -d --build", "1 小時前", False, False),+ ("text", "發票寄到財務部,註明訂單編號", "1 天前", False, True),+ ("text", "pnpm install", "1 天前", False, False)],+ [("text", "Meeting moved to Thursday 3 pm, same room", "Just now", False, False),+ ("link", "https://github.com/baiyuze/pasteferry", "2 minutes ago", False, False),+ ("image", "Image", "Windows PC · 5 minutes ago", True, False),+ ("files", "signed-contract.pdf and 2 more", "52 minutes ago", False, False),+ ("text", "Billing: Ferry Labs Ltd · VAT GB 123 4567 89", "1 hour ago", True, True),+ ("text", "docker compose up -d --build", "1 hour ago", False, False),+ ("text", "Send the billing PDF to accounts, quote the order number", "Yesterday", False, True),+ ("text", "pnpm install", "Yesterday", False, False)],+ [("text", "打ち合わせは木曜 15 時に変更、場所は同じ", "たった今", False, False),+ ("link", "https://github.com/baiyuze/pasteferry", "2 分前", False, False),+ ("image", "画像", "Windows デスクトップ · 5 分前", True, False),+ ("files", "契約書_署名済み.pdf ほか 2 件", "52 分前", False, False),+ ("text", "請求先:株式会社フェリーラボ 登録番号 T1234567890123", "1 時間前", True, True),+ ("text", "docker compose up -d --build", "1 時間前", False, False),+ ("text", "請求書は経理部宛て、注文番号を記載", "1 日前", False, True),+ ("text", "pnpm install", "1 日前", False, False)],+ ),++ # ── 收藏 ──+ "fav_h2": ("常用的,<br>收藏起来。", "常用的,<br>收藏起來。", "常用的,<br>收藏起來。",+ "Keep what you reuse.", "よく使うものは、<br>お気に入りに。"),+ "fav_intro": (+ "发票抬头、地址、常用回复,点一下星标就另存一份。收藏不会过期,清空复制记录也还在。",+ "發票抬頭、地址、常用回覆,點一下星號就另存一份。收藏不會過期,清空複製記錄也還在。",+ "發票抬頭、地址、常用回覆,按一下星號就另存一份。收藏不會過期,清空複製記錄也還在。",+ "Billing details, addresses, stock replies: star an item to keep a copy. Favorites never expire and survive clearing your history.",+ "請求先、住所、定型の返信。星をクリックすれば別に保存されます。お気に入りは期限切れにならず、履歴を消しても残ります。",+ ),+ "fav_points": (+ [("不会被清理", "复制记录到期自动清理,收藏一直留着。"),+ ("另存一份", "原文件之后改动或删除,都不影响收藏里的那份。"),+ ("快捷窗口里也有", "切到「收藏」页签,或者按 {fav} 收藏选中的那一条。")],+ [("不會被清除", "複製記錄到期自動清除,收藏一直留著。"),+ ("另存一份", "原檔案之後改動或刪除,都不影響收藏裡的那份。"),+ ("快速貼上視窗裡也有", "切到「收藏」分頁,或者按 {fav} 收藏選取的那一筆。")],+ [("不會被清理", "複製記錄到期自動清理,收藏一直留着。"),+ ("另存一份", "原檔案之後改動或刪除,都不影響收藏裏的那份。"),+ ("快速貼上視窗裏也有", "切到「收藏」分頁,或者按 {fav} 收藏選取的那一條。")],+ [("Never cleaned up", "History expires on schedule; favorites stay."),+ ("A copy of its own", "Changing or deleting the original file doesn’t touch the favorite."),+ ("In quick paste too", "Switch to the Favorites tab, or press {fav} to favorite the selected item.")],+ [("自動では削除されない", "履歴は期限が来ると消えますが、お気に入りは残ります。"),+ ("別のコピーとして保存", "元のファイルを変更・削除しても、お気に入りは影響を受けません。"),+ ("クイックペーストでも", "「お気に入り」タブに切り替えるか、{fav} で選んだ項目をお気に入りに。")],+ ),+ "fav_alt": (+ "收藏页:发票抬头、常用回复、下载链接、营业执照.pdf 等五条收藏,每条右边是蓝色的星标",+ "收藏頁:發票抬頭、常用回覆、下載連結、公司登記證明.pdf 等五筆收藏,每筆右邊是藍色的星號",+ "收藏頁:發票抬頭、常用回覆、下載連結、商業登記證.pdf 等五條收藏,每條右邊是藍色的星號",+ "The Favorites page: five saved items including billing details, a stock reply, a download link and a PDF, each with a blue star",+ "お気に入りページ:請求先、定型の返信、ダウンロードリンク、PDF など 5 件。それぞれ右に青い星",+ ),++ # ── 细节:六格 ──+ "details_h2": ("细节里,<br>也替你想好了。", "細節裡,<br>也替你想好了。", "細節裏,<br>也替你想好了。",+ "The details,<br>taken care of.", "細かいところまで、<br>考えてあります。"),+ "filter_title": ("链接单独一栏", "連結單獨一欄", "連結單獨一欄", "Links get their own tab", "リンクは専用のタブに"),+ "filter_text": (+ "复制记录按类型筛选:文本、链接、图片、文件、收藏,一点就分开。",+ "複製記錄按類型篩選:文字、連結、圖片、檔案、收藏,一點就分開。",+ "複製記錄按類型篩選:文字、連結、圖片、檔案、收藏,一按就分開。",+ "Filter your history by type — text, links, images, files or favorites — in one click.",+ "履歴を種類で絞り込み:テキスト、リンク、画像、ファイル、お気に入り。クリックひとつで。",+ ),+ # 筛选演示里的记录:(图标, 文字, 收藏过)+ "filter_rows": (+ [("text", "会议改到周四下午 3 点", False), ("link", "https://github.com/baiyuze/pasteferry", False),+ ("image", "图片 · 2.4 MB", False), ("file", "季度汇报-终版.key", False),+ ("link", "https://pasteferry.cc/download/", True), ("text", "发票抬头:上海隔空科技有限公司", True)],+ [("text", "會議改到週四下午 3 點", False), ("link", "https://github.com/baiyuze/pasteferry", False),+ ("image", "圖片 · 2.4 MB", False), ("file", "季度報告-定稿.key", False),+ ("link", "https://pasteferry.cc/download/", True), ("text", "發票抬頭:隔空科技股份有限公司", True)],+ [("text", "會議改到星期四下午 3 點", False), ("link", "https://github.com/baiyuze/pasteferry", False),+ ("image", "圖片 · 2.4 MB", False), ("file", "季度報告-最終版.key", False),+ ("link", "https://pasteferry.cc/download/", True), ("text", "發票抬頭:隔空科技有限公司", True)],+ [("text", "Meeting moved to Thursday 3 pm", False), ("link", "https://github.com/baiyuze/pasteferry", False),+ ("image", "Image · 2.4 MB", False), ("file", "Q3 review - final.key", False),+ ("link", "https://pasteferry.cc/download/", True), ("text", "Billing: Ferry Labs Ltd", True)],+ [("text", "打ち合わせは木曜 15 時に変更", False), ("link", "https://github.com/baiyuze/pasteferry", False),+ ("image", "画像 · 2.4 MB", False), ("file", "四半期報告_最終版.key", False),+ ("link", "https://pasteferry.cc/download/", True), ("text", "請求先:株式会社フェリーラボ", True)],+ ),+ "hover_title": ("停一下,就看到全文", "停一下,就看到全文", "停一停,就看到全文", "Hover to see it all", "ポインタを置くだけで全文"),+ "hover_text": (+ "鼠标在一条上停半秒,弹出完整的文字、放大的图片或全部文件名,不用点开。",+ "滑鼠在一筆上停半秒,彈出完整的文字、放大的圖片或全部檔名,不用點開。",+ "滑鼠在一條上停半秒,彈出完整的文字、放大的圖片或全部檔案名稱,不用打開。",+ "Rest the pointer on an item for half a second to see the full text, a larger image or every file name.",+ "項目にポインタを 0.5 秒置くと、全文、大きな画像、すべてのファイル名が表示されます。",+ ),+ "hover_alt": (+ "鼠标停在一条会议记录上,弹出的提示框显示它的全文:负责人、发布窗口和监控要求",+ "滑鼠停在一筆會議記錄上,彈出的提示框顯示它的全文:負責人、發布時段和監控要求",+ "滑鼠停在一條會議記錄上,彈出的提示框顯示它的全文:負責人、發佈時段和監察要求",+ "The pointer rests on meeting notes and a card shows the full text: owners, release window and monitoring",+ "会議メモにポインタを置くと、全文(担当、公開時間、監視)がカードに表示される",+ ),+ "search_title": ("三天里复制的,搜得到", "三天裡複製的,搜得到", "三日內複製的,搜得到", "Search what you copied",+ "コピーしたものを検索"),+ "search_text": (+ "按文字内容或文件名搜索,点一下就放回剪贴板。记录默认保留 3 天,最长可以留 30 天。",+ "按文字內容或檔名搜尋,點一下就放回剪貼簿。記錄預設保留 3 天,最長可以留 30 天。",+ "按文字內容或檔案名稱搜尋,按一下就放回剪貼簿。記錄預設保留 3 日,最長可以留 30 日。",+ "Search by text or file name and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.",+ "テキストやファイル名で検索し、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。",+ ),+ "search_query": ("合同", "合約", "合約", "contract", "契約"),+ "search_hits": (+ ["合同扫描件.pdf", "合同第 3 条改成按季度付款"],+ ["合約掃描檔.pdf", "合約第 3 條改成按季付款"],+ ["合約掃描本.pdf", "合約第 3 條改為按季付款"],+ ["signed-contract.pdf", "Contract clause 3: switch to quarterly payments"],+ ["契約書_署名済み.pdf", "契約第 3 条を四半期払いに変更"],+ ),+ "big_title": ("大文件,用时再取", "大檔案,用時再取", "大檔案,用時再取", "Big files, when you need them",+ "大きなファイルは必要なときに"),+ "big_text": (+ "超过 50 MB 的先只同步一条记录,点「接收」才开始传,不占你的带宽。",+ "超過 50 MB 的先只同步一筆記錄,點「接收」才開始傳,不佔你的頻寬。",+ "超過 50 MB 的先只同步一條記錄,按「接收」才開始傳,不佔你的頻寬。",+ "Anything over 50 MB syncs as a record first and only transfers when you click Receive.",+ "50 MB を超えるものはまず記録だけを同期し、「受信」をクリックしたときに転送します。",+ ),+ "big_file": ("发布演示录屏.mov", "發表會示範錄影.mov", "發佈會示範錄影.mov", "launch-demo.mov", "発表デモ.mov"),+ "big_meta": ("来自 Mac mini · 1.3 GB", "來自 Mac mini · 1.3 GB", "來自 Mac mini · 1.3 GB", "From Mac mini · 1.3 GB",+ "Mac mini から · 1.3 GB"),+ "big_button": ("接收", "接收", "接收", "Receive", "受信"),+ "folder_title": ("整个文件夹也行", "整個資料夾也行", "整個資料夾也可以", "Whole folders, too", "フォルダごとでも"),+ "folder_text": (+ "复制一个文件夹,到另一台粘贴出来的就是同样的文件夹,结构不变。",+ "複製一個資料夾,到另一台貼上的就是同樣的資料夾,結構不變。",+ "複製一個資料夾,到另一部電腦貼上的就是同樣的資料夾,結構不變。",+ "Copy a folder and paste the same folder, structure intact, on the other computer.",+ "フォルダをコピーすれば、向こうには同じ構成のフォルダがそのままペーストされます。",+ ),+ # 文件名演示:Mac 上的名字 → Windows 上收到的名字+ "names_from": ("会议纪要 10:30?.md", "會議記錄 10:30?.md", "會議記錄 10:30?.md", "Notes 10:30?.md", "議事録 10:30?.md"),+ "names_to": ("会议纪要 10:30?.md", "會議記錄 10:30?.md", "會議記錄 10:30?.md", "Notes 10:30?.md", "議事録 10:30?.md"),+ "names_title": ("文件名不打架", "檔名不打架", "檔案名稱不衝突", "Names that work everywhere", "ファイル名も安心"),+ "names_text": (+ "Mac 上能用、Windows 上不合法的字符,收到时换成全角字符,名字照样看得懂。",+ "Mac 上能用、Windows 上不合法的字元,收到時換成全形字元,檔名照樣看得懂。",+ "Mac 上能用、Windows 上不合法的字元,收到時換成全形字元,檔案名稱照樣看得懂。",+ "Characters that are fine on a Mac but not allowed on Windows become full-width look-alikes, so names stay readable.",+ "Mac では使えて Windows では使えない文字は全角に置き換えるので、名前はそのまま読めます。",+ ),++ # ── 跨网络 ──+ "net_h2": ("家里和公司,<br>也能直连。", "家裡和公司,<br>也能直連。", "家裏和公司,<br>也能直連。",+ "Home and office,<br>connected directly.", "自宅と職場も、<br>直接つながる。"),+ "net_intro": (+ "同一网络里装好就能配对。不在一个网络时,开启官方服务就行,不用自己搭服务器。两台电脑优先打洞直连,打不通才加密中转。",+ "同一網路裡裝好就能配對。不在同一網路時,開啟官方服務就行,不用自己架伺服器。兩台電腦優先打洞直連,打不通才加密中繼。",+ "同一網絡裏裝好就能配對。不在同一網絡時,開啟官方服務就可以,不用自己架設伺服器。兩部電腦優先打洞直連,打不通才加密中轉。",+ "On the same network, install and pair. Across networks, turn on the official service — no server of your own. Computers connect directly whenever possible and fall back to an encrypted relay.",+ "同じネットワークなら、入れてペアリングするだけ。別のネットワークでも公式サービスをオンにすれば、自前のサーバーは不要です。可能な限り直接つながり、だめなときだけ暗号化して中継します。",+ ),+ "net_points": (+ [("同一网络", "不需要服务器,输入配对码就行。"),+ ("跨网络", "官方服务、自建服务器或 Tailscale,任选一种。"),+ ("端到端加密", "配对时核对安全指纹,服务器看不到内容。")],+ [("同一網路", "不需要伺服器,輸入配對碼就行。"),+ ("跨網路", "官方服務、自架伺服器或 Tailscale,任選一種。"),+ ("端對端加密", "配對時核對安全指紋,伺服器看不到內容。")],+ [("同一網絡", "不需要伺服器,輸入配對碼就可以。"),+ ("跨網絡", "官方服務、自建伺服器或 Tailscale,任選一種。"),+ ("端對端加密", "配對時核對安全指紋,伺服器看不到內容。")],+ [("Same network", "No server. Enter a pairing code and you’re done."),+ ("Across networks", "The official service, your own server, or Tailscale."),+ ("End-to-end encrypted", "Verify fingerprints when pairing; the server never sees your content.")],+ [("同じネットワーク", "サーバー不要。ペアリングコードを入れるだけ。"),+ ("別のネットワーク", "公式サービス、自前のサーバー、Tailscale から選べます。"),+ ("エンドツーエンド暗号化", "ペアリング時に指紋を照合。サーバーは内容を見られません。")],+ ),+ "net_links": ("选择连接方式 →", "選擇連線方式 →", "選擇連接方式 →", "Choose how to connect →", "接続方法を選ぶ →"),+ "net_how": ("工作原理 →", "運作原理 →", "運作原理 →", "How it works →", "しくみ →"),+ "net_label": (+ "示意:家里和公司两个网络里的两台电脑经官方服务找到彼此,然后直接相连",+ "示意:家裡和公司兩個網路裡的兩台電腦經官方服務找到彼此,然後直接相連",+ "示意:家裏和公司兩個網絡裏的兩部電腦經官方服務找到彼此,然後直接相連",+ "Diagram: two computers on a home and an office network find each other through the official service, then connect directly",+ "図:自宅と職場のネットワークにある 2 台のパソコンが公式サービスを介して互いを見つけ、直接つながる",+ ),+ "net_home": ("家里", "家裡", "家裏", "Home", "自宅"),+ "net_office": ("公司", "公司", "公司", "Office", "職場"),+ "net_service": ("官方服务", "官方服務", "官方服務", "Official service", "公式サービス"),+ "net_direct": ("直连 · 端到端加密", "直連 · 端對端加密", "直連 · 端對端加密", "Direct · end-to-end encrypted",+ "直接接続 · エンドツーエンド暗号化"),++ # ── 数字 ──+ "numbers_h2": ("几个数字。", "幾個數字。", "幾個數字。", "By the numbers.", "数字で見る。"),+ "numbers": (+ [("3", "个系统", "macOS、Windows、Linux"), ("50 MB", "以内", "复制的同时就传好"),+ ("≈330 ms", "", "局域网直连传 20 MB 文件"), ("0", "个账号", "不用注册,配对即用")],+ [("3", "個系統", "macOS、Windows、Linux"), ("50 MB", "以內", "複製的同時就傳好"),+ ("≈330 ms", "", "區域網路直連傳 20 MB 檔案"), ("0", "個帳號", "不用註冊,配對即用")],+ [("3", "個系統", "macOS、Windows、Linux"), ("50 MB", "以內", "複製的同時就傳好"),+ ("≈330 ms", "", "區域網絡直連傳 20 MB 檔案"), ("0", "個帳戶", "不用登記,配對即用")],+ [("3", "systems", "macOS, Windows, Linux"), ("50 MB", "", "sent as you copy"),+ ("≈330 ms", "", "for a 20 MB file over a LAN"), ("0", "accounts", "no sign-up, just pair")],+ [("3", "つの OS", "macOS、Windows、Linux"), ("50 MB", "まで", "コピーと同時に転送"),+ ("≈330 ms", "", "LAN で 20 MB のファイルを転送"), ("0", "アカウント", "登録不要、ペアリングだけ")],+ ),++ "closing": ("现在就试试。", "現在就試試。", "現在就試試。", "Try it now.", "さっそく試す。"),++ # ── 从首页挪出去的三页:工作原理(how/)、安全与隐私(security/)、常见问题(faq/) ──+ "how_title": ("工作原理:直连、多出口探测与出问题时的处理 — 隔空贴", "運作原理:直連、多出口探測與出問題時的處理 — 隔空貼",+ "運作原理:直連、多出口探測與出問題時的處理 — 隔空貼",+ "How PasteFerry works: direct connections, multi-uplink probing and failure handling",+ "PasteFerry のしくみ:直接接続、複数回線の探索、障害時の動作"),+ "how_lede": (+ "按下复制之后发生了什么,两台电脑怎样找到彼此、怎样直连,打不通时怎么办。",+ "按下複製之後發生了什麼,兩台電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。",+ "按下複製之後發生了甚麼,兩部電腦怎樣找到彼此、怎樣直連,打不通時怎麼辦。",+ "What happens after you copy, how two computers find each other and connect directly, and what happens when they can’t.",+ "コピーした後に何が起きるのか。2 台のパソコンがどう互いを見つけて直接つながり、つながらないときはどうなるのか。",+ ),+ "security_title": ("安全与隐私:端到端加密与配对核对 — 隔空贴", "安全與隱私:端對端加密與配對核對 — 隔空貼",+ "安全與私隱:端對端加密與配對核對 — 隔空貼",+ "Security and privacy: end-to-end encryption and pairing verification — PasteFerry",+ "セキュリティとプライバシー:エンドツーエンド暗号化とペアリングの照合 — PasteFerry"),+ "security_lede": (+ "设备身份是一把密钥,配对时由你核对指纹,之后的每条消息都带签名,内容只有你的设备能解密。",+ "裝置身分是一把金鑰,配對時由你核對指紋,之後的每則訊息都帶簽章,內容只有你的裝置能解密。",+ "裝置身分是一把金鑰,配對時由你核對指紋,之後的每條訊息都帶簽署,內容只有你的裝置能解密。",+ "Each device is identified by a key, you verify fingerprints when pairing, every message is signed, and only your devices can decrypt what you copy.",+ "デバイスは鍵で識別され、ペアリング時にあなたが指紋を照合します。以降のメッセージはすべて署名付きで、内容を復号できるのはあなたのデバイスだけです。",+ ),+ "privacy_link": ("隐私说明 →", "隱私權說明 →", "私隱說明 →", "Privacy policy →", "プライバシーポリシー →"),+ "faq_title": ("常见问题 — 隔空贴", "常見問題 — 隔空貼", "常見問題 — 隔空貼", "FAQ — PasteFerry", "よくある質問 — PasteFerry"),+ "faq_lede": (+ "安装、连接、同步、费用。没找到答案的话,欢迎反馈。",+ "安裝、連線、同步、費用。沒找到答案的話,歡迎回報。",+ "安裝、連接、同步、費用。找不到答案的話,歡迎回報。",+ "Installing, connecting, syncing and pricing. If your question isn’t here, let us know.",+ "インストール、接続、同期、料金について。答えが見つからなければお知らせください。",+ ),+ "faq_more": ("反馈问题 →", "回報問題 →", "回報問題 →", "Report an issue →", "問題を報告 →"),+}+++def localized(code: str) -> dict:+ """某种语言的全部文案。"""+ i = LANGUAGES.index(code)+ return {k: v[i] for k, v in COPY.items()}diff --git a/tools/site/content/ja.py b/tools/site/content/ja.pyindex ba24ae6..b71d4e0 100644--- a/tools/site/content/ja.py+++ b/tools/site/content/ja.py@@ -96,12 +96,6 @@ C = {},},- "history_h2": "どのデバイスでコピーしたものも、ここに",- "history_intro": "履歴には直近 3 日分が残り、いつでもクリップボードに戻せます。画像はクリックでプレビュー。"- "50 MB までのファイルはコピーした時点で届いていて、それより大きいものは必要なときにワンクリックで取り込めます。"- "前にコピーしたものは、テキストやファイル名で検索できます。",- "history_alt": "PasteFerry の履歴画面:MacBook Air と Mac mini から届いたファイル、画像、テキスト。大きなファイルには「このデバイスに取り込む」ボタン",-"flow_h2": "コピーしたあと、何が起きるか","flow_intro": "テキストも画像も、ファイルもフォルダも、同じ道を通ります。","flow": [@@ -200,30 +194,7 @@ C = {"install_h2": "インストール","install_intro": "それぞれのコンピューターにアプリを入れます。同じネットワークならそのままペアリングでき、ネットワークをまたぐときは 2 台がお互いを見つける方法をひとつ選びます。はじめての方は<a href=\"{start}\">はじめかた</a>をどうぞ。",- "mac_steps": [- "DMG をダウンロードして開き、PasteFerry を「アプリケーション」にドラッグします。<span class=\"aside\">Apple シリコン版と Intel 版があります。"- "自分の Mac がどちらかの確かめ方は、ダウンロードページにあります。</span>",- "「アプリケーション」から開きます。<span class=\"aside\">初回は「開発元を検証できません」と表示されます。PasteFerry はまだ Apple の公証を受けていないためです。"- "「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。必要なのは一度だけです。</span>",- "「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。",- '別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。',- ],- "win_steps": [- "PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。"- "<span class=\"aside\">PasteFerry はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。"- f"インストーラーを使いたくない場合は<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">ポータブル版</a>もあります。</span>",- "PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。",- '別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。',- ],- "linux_steps": [- "Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./PasteFerry-linux-amd64.deb</code> を実行します。"- "ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./PasteFerry/install.sh</code> を実行します。",- "アプリケーションメニューから PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。",- '別ネットワークで使う場合は各パソコンの「設定 → 公式サービスを使う」をオンにします。アドレス入力は不要。独自サーバーも利用できます。',- ],- "server_h3": "接続方法","server_intro": '同じネットワークならインストールしてペアリング。別ネットワークなら公式サービスをオンにするだけで、サーバーの準備は不要です。独自サーバーと Tailscale も選べます。',- "server_compare": '接続方法を比較',"copy": "コピー","copied": "コピーしました","pairing": '一方でコードを表示し、もう一方で入力。両画面の指紋を照合して確認します。既存のペアリングはそのまま使えます。 公式サービスでは相手の IP は不要です。LAN の別サブネットや Tailscale の場合のみ相手のアドレスを入力します。',diff --git a/tools/site/content/zh-hk.py b/tools/site/content/zh-hk.pyindex f7986a2..71e9d0c 100644--- a/tools/site/content/zh-hk.py+++ b/tools/site/content/zh-hk.py@@ -96,12 +96,6 @@ C = {},},- "history_h2": "所有裝置上複製過的內容,都在這裏",- "history_intro": "複製記錄保留最近 3 天的內容,隨時可以放回剪貼簿,圖片按一下就能預覽。"- "50 MB 以內的檔案在你複製的時候已經傳送好了,更大的檔案需要時按一下再拉取。"- "想找以前複製過的,用文字內容或檔案名稱搜尋一下就找到。",- "history_alt": '隔空貼的複製記錄:來自 MacBook Air 和 Mac mini 的檔案、圖片、文字,大檔案顯示「接收」按鈕',-"flow_h2": "按下複製之後","flow_intro": "文字、圖片、檔案、整個資料夾,都走同一條路。","flow": [@@ -201,29 +195,7 @@ C = {"install_h2": "安裝","install_intro": "每部電腦安裝一個 App。在同一個網絡裏安裝好就能配對;跨網絡時,再選一種方式讓兩部電腦找到彼此。""第一次安裝可以跟着<a href=\"{start}\">快速開始</a>做。",- "mac_steps": [- "下載 DMG,開啟後把隔空貼拖進「應用程式」。<span class=\"aside\">Apple 晶片與 Intel 處理器的 Mac 各有一個版本,下載頁會告訴你怎樣分辨自己的 Mac 屬於哪種。</span>",- "從「應用程式」裏開啟。<span class=\"aside\">第一次會提示「無法驗證開發者」:隔空貼仍未經 Apple 公證。"- "到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」,只需要做一次。</span>",- "按「啟用背景同步」。系統詢問是否允許讀取剪貼簿、能否尋找本地網絡上的裝置時,都選擇允許。",- '跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。',- ],- "win_steps": [- "執行 PasteFerry-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。"- "<span class=\"aside\">隔空貼仍未有程式碼簽署,Windows 會提示「Windows 已保護您的電腦」:按「其他資訊」,再按「仍要執行」。"- f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">免安裝版</a>。</span>",- "開啟隔空貼,按「啟用背景同步」。關閉視窗後,它會在右下角的系統匣裏繼續執行。防火牆詢問時選擇允許。",- '跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。',- ],- "linux_steps": [- "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"- "其他發行版下載 tar.gz,解壓後執行 <code>./PasteFerry/install.sh</code>。",- "從應用程式選單開啟隔空貼,按「啟用背景同步」。之後它會在登入時自動啟動。",- '跨網絡時,在每部電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器地址;也可以繼續自建。',- ],- "server_h3": "連線方式","server_intro": '同一網絡裏裝好就能配對;不同網絡裏,啟用官方服務即可,無需自建。也保留自建伺服器與 Tailscale,按需要選擇。',- "server_compare": '比較連線方式',"copy": "複製","copied": "已複製","pairing": '一部產生配對碼,另一部輸入;核對兩邊的安全指紋後確認。原有配對關係可以繼續使用。 官方服務無需填寫對方 IP;只在區域網絡跨網段或 Tailscale 配對時填寫對方地址。',diff --git a/tools/site/content/zh-tw.py b/tools/site/content/zh-tw.pyindex a90ba2f..a80056b 100644--- a/tools/site/content/zh-tw.py+++ b/tools/site/content/zh-tw.py@@ -96,12 +96,6 @@ C = {},},- "history_h2": "所有裝置上複製過的,都在這裡",- "history_intro": "複製記錄保留最近 3 天的內容,隨時可以放回剪貼簿,圖片點一下就能預覽。"- "50 MB 以內的檔案在你複製的時候就已經傳好了,更大的檔案等需要時再點一下拉取。"- "想找以前複製過的,用文字內容或檔名搜尋一下就有。",- "history_alt": '隔空貼的複製記錄:來自 MacBook Air 和 Mac mini 的檔案、圖片、文字,大檔案顯示「接收」按鈕',-"flow_h2": "按下複製之後","flow_intro": "文字、圖片、檔案、整個資料夾,都走同一條路。","flow": [@@ -201,29 +195,7 @@ C = {"install_h2": "安裝","install_intro": "每台電腦裝一個 App。在同一個網路裡裝好就能配對;跨網路時,再選一種方式讓兩台電腦找到彼此。""第一次安裝可以跟著<a href=\"{start}\">快速入門</a>做。",- "mac_steps": [- "下載 DMG,打開後把隔空貼拖進「應用程式」。<span class=\"aside\">Apple 晶片與 Intel 晶片各有一個版本,下載頁會告訴你怎麼查自己的 Mac 是哪一種。</span>",- "從「應用程式」裡打開。<span class=\"aside\">第一次會提示「無法驗證開發者」:隔空貼還沒有經過 Apple 公證。"- "到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」,只需要這一次。</span>",- "點「啟用背景同步」。系統詢問是否允許讀取剪貼簿、是否允許尋找區域網路上的裝置時,都選擇允許。",- '跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。',- ],- "win_steps": [- "執行 PasteFerry-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。"- "<span class=\"aside\">隔空貼還沒有程式碼簽章,Windows 會提示「Windows 已保護您的電腦」:點「其他資訊」,再點「仍要執行」。"- f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">免安裝版</a>。</span>",- "打開隔空貼,點「啟用背景同步」。關掉視窗後,它會在右下角的通知區域繼續執行。防火牆詢問時選擇允許。",- '跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。',- ],- "linux_steps": [- "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"- "其他發行版下載 tar.gz,解壓縮後執行 <code>./PasteFerry/install.sh</code>。",- "從應用程式選單打開隔空貼,點「啟用背景同步」。之後它會在登入時自動啟動。",- '跨網路時,在每台電腦的「設定」中開啟「使用官方服務」,無需填寫伺服器位址;也可以繼續自建。',- ],- "server_h3": "連線方式","server_intro": '同一網路裡裝好就能配對;不同網路裡,啟用官方服務即可,無需自建。也保留自建伺服器與 Tailscale,依需求選擇。',- "server_compare": '比較連線方式',"copy": "複製","copied": "已複製","pairing": '一台產生配對碼,另一台輸入;核對兩邊的安全指紋後確認。原有配對關係可繼續使用。 官方服務無需填寫對方 IP;僅區域網路跨網段或 Tailscale 配對時填寫對方位址。',diff --git a/tools/site/content/zh.py b/tools/site/content/zh.pyindex d2eb51e..4972b15 100644--- a/tools/site/content/zh.py+++ b/tools/site/content/zh.py@@ -96,12 +96,6 @@ C = {},},- "history_h2": "所有设备上复制过的,都在这里",- "history_intro": "复制记录保留最近 3 天的内容,随时可以放回剪贴板,图片点开就能预览。"- "50 MB 以内的文件在你复制的时候就已经传好了,更大的文件需要时点一下再拉取。"- "想找以前复制过的,按文字内容或文件名搜一下就有。",- "history_alt": '隔空贴的复制记录:来自 MacBook Air 和 Mac mini 的文件、图片、文字,大文件显示「接收」按钮',-"flow_h2": "按下复制之后","flow_intro": "文字、图片、文件、整个文件夹,都走同一条路。","flow": [@@ -201,29 +195,7 @@ C = {"install_h2": "安装","install_intro": "每台电脑装一个 App。同一个网络里装好就能配对;跨网络时,再选一种方式让两台电脑找到彼此。""第一次装可以跟着<a href=\"{start}\">快速开始</a>。",- "mac_steps": [- "下载 DMG,打开后把隔空贴拖进「应用程序」。<span class=\"aside\">Apple 芯片与 Intel 芯片各有一版,下载页会告诉你怎么看自己的 Mac 是哪种。</span>",- "从「应用程序」里打开。<span class=\"aside\">第一次会提示「无法验证开发者」:隔空贴还没有经过 Apple 公证。"- "到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」,只需要这一次。</span>",- "点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。",- '跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。',- ],- "win_steps": [- "运行 PasteFerry-Setup.exe。装在当前用户目录下,不需要管理员权限。"- "<span class=\"aside\">隔空贴还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。"- f"不想运行安装程序的话,可以下载<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">便携版</a>。</span>",- "打开隔空贴,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。",- '跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。',- ],- "linux_steps": [- "Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"- "其他发行版下载 tar.gz,解压后运行 <code>./PasteFerry/install.sh</code>。",- "从应用菜单里打开隔空贴,点「启用后台同步」。之后它随登录自动启动。",- '跨网络时,在每台电脑的「设置」中开启「使用官方服务」,无需填写服务器地址;也可以继续自建。',- ],- "server_h3": "连接方式","server_intro": '同一网络里装好就能配对;不同网络里,开启官方服务即可,无需自建。也保留自建服务器与 Tailscale,按你的需要选择。',- "server_compare": '对比连接方式',"copy": "复制","copied": "已复制","pairing": '一台生成配对码,另一台输入;核对两边的安全指纹后确认。已有配对关系可以继续使用。 官方服务无需填写对端 IP;仅局域网跨网段或 Tailscale 配对时填写对端地址。',