mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 19:45:12 +00:00
all: Typos
Skip-check: authors GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4263
This commit is contained in:
parent
0ca2ed7ad7
commit
0ad10b0fee
@ -100,7 +100,7 @@ All code is licensed under the [MPLv2 License][7].
|
|||||||
[1]: https://docs.syncthing.net/specs/bep-v1.html
|
[1]: https://docs.syncthing.net/specs/bep-v1.html
|
||||||
[2]: https://docs.syncthing.net/intro/getting-started.html
|
[2]: https://docs.syncthing.net/intro/getting-started.html
|
||||||
[3]: https://github.com/syncthing/syncthing/blob/master/etc
|
[3]: https://github.com/syncthing/syncthing/blob/master/etc
|
||||||
[4]: http://www.freenode.net/
|
[4]: https://www.freenode.net/
|
||||||
[5]: https://docs.syncthing.net/dev/building.html
|
[5]: https://docs.syncthing.net/dev/building.html
|
||||||
[6]: https://docs.syncthing.net/
|
[6]: https://docs.syncthing.net/
|
||||||
[7]: https://github.com/syncthing/syncthing/blob/master/LICENSE
|
[7]: https://github.com/syncthing/syncthing/blob/master/LICENSE
|
||||||
|
@ -943,7 +943,7 @@ func TestEventMasks(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
expected = 0
|
expected = 0
|
||||||
if mask := svc.getEventMask("WeirdEvent,something else that doens't exist"); mask != expected {
|
if mask := svc.getEventMask("WeirdEvent,something else that doesn't exist"); mask != expected {
|
||||||
t.Errorf("incorrect parsed mask %x != %x", int64(mask), int64(expected))
|
t.Errorf("incorrect parsed mask %x != %x", int64(mask), int64(expected))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1074,7 +1074,7 @@ func setupGUI(mainService *suture.Supervisor, cfg *config.Wrapper, m *model.Mode
|
|||||||
|
|
||||||
if cfg.Options().StartBrowser && !runtimeOptions.noBrowser && !runtimeOptions.stRestarting {
|
if cfg.Options().StartBrowser && !runtimeOptions.noBrowser && !runtimeOptions.stRestarting {
|
||||||
// Can potentially block if the utility we are invoking doesn't
|
// Can potentially block if the utility we are invoking doesn't
|
||||||
// fork, and just execs, hence keep it in it's own routine.
|
// fork, and just execs, hence keep it in its own routine.
|
||||||
<-api.startedOnce
|
<-api.startedOnce
|
||||||
go openURL(guiCfg.URL())
|
go openURL(guiCfg.URL())
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ the "Upstart" service manager on Linux. To have syncthing start when you login
|
|||||||
place "user/syncthing.conf" in the "/home/[username]/.config/upstart/" folder.
|
place "user/syncthing.conf" in the "/home/[username]/.config/upstart/" folder.
|
||||||
To have syncthing start when the system boots place "system/syncthing.conf"
|
To have syncthing start when the system boots place "system/syncthing.conf"
|
||||||
in the "/etc/init/" folder.
|
in the "/etc/init/" folder.
|
||||||
To manualy start syncthing via Upstart when using the system configuration use:
|
To manually start syncthing via Upstart when using the system configuration use:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo initctl start syncthing
|
sudo initctl start syncthing
|
||||||
|
@ -26,8 +26,8 @@ var (
|
|||||||
|
|
||||||
type filterList []*pfilter.PacketFilter
|
type filterList []*pfilter.PacketFilter
|
||||||
|
|
||||||
// Sort connections by wether the are unspecified or not, as connections
|
// Sort connections by whether they are unspecified or not, as connections
|
||||||
// listenin on all addresses are more useful.
|
// listening on all addresses are more useful.
|
||||||
func (f filterList) Len() int { return len(f) }
|
func (f filterList) Len() int { return len(f) }
|
||||||
func (f filterList) Swap(i, j int) { f[i], f[j] = f[j], f[i] }
|
func (f filterList) Swap(i, j int) { f[i], f[j] = f[j], f[i] }
|
||||||
func (f filterList) Less(i, j int) bool {
|
func (f filterList) Less(i, j int) bool {
|
||||||
@ -92,7 +92,7 @@ func (f *kcpConversationFilter) Outgoing(out []byte, addr net.Addr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (kcpConversationFilter) isKCPConv(data []byte) bool {
|
func (kcpConversationFilter) isKCPConv(data []byte) bool {
|
||||||
// Need atleast 5 bytes
|
// Need at least 5 bytes
|
||||||
if len(data) < 5 {
|
if len(data) < 5 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ func (f *stunFilter) ClaimIncoming(in []byte, addr net.Addr) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *stunFilter) isStunPayload(data []byte) bool {
|
func (f *stunFilter) isStunPayload(data []byte) bool {
|
||||||
// Need atleast 20 bytes
|
// Need at least 20 bytes
|
||||||
if len(data) < 20 {
|
if len(data) < 20 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -533,7 +533,7 @@ func (m *Model) Completion(device protocol.DeviceID, folder string) FolderComple
|
|||||||
|
|
||||||
// If the completion is 100% but there are deletes we need to handle,
|
// If the completion is 100% but there are deletes we need to handle,
|
||||||
// drop it down a notch. Hack for consumers that look only at the
|
// drop it down a notch. Hack for consumers that look only at the
|
||||||
// percentage (our own GUI does the same calculation as here on it's own
|
// percentage (our own GUI does the same calculation as here on its own
|
||||||
// and needs the same fixup).
|
// and needs the same fixup).
|
||||||
if need == 0 && deletes > 0 {
|
if need == 0 && deletes > 0 {
|
||||||
completionPct = 95 // chosen by fair dice roll
|
completionPct = 95 // chosen by fair dice roll
|
||||||
|
@ -33,7 +33,7 @@ func TestReset(t *testing.T) {
|
|||||||
size := createFiles(t)
|
size := createFiles(t)
|
||||||
|
|
||||||
p := startInstance(t, 1)
|
p := startInstance(t, 1)
|
||||||
defer p.Stop() // Not checkedStop, because Syncthing will exit on it's own
|
defer p.Stop() // Not checkedStop, because Syncthing will exit on its own
|
||||||
|
|
||||||
m, err := p.Model("default")
|
m, err := p.Model("default")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -76,7 +76,7 @@ func TestReset(t *testing.T) {
|
|||||||
// ---- Syncthing exits here ----
|
// ---- Syncthing exits here ----
|
||||||
|
|
||||||
p = startInstance(t, 1)
|
p = startInstance(t, 1)
|
||||||
defer p.Stop() // Not checkedStop, because Syncthing will exit on it's own
|
defer p.Stop() // Not checkedStop, because Syncthing will exit on its own
|
||||||
|
|
||||||
m, err = p.Model("default")
|
m, err = p.Model("default")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user