mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-30 14:33:31 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			88bdefcd90
			...
			20d86e9ea6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 20d86e9ea6 | ||
|  | 76e5e54a67 | 
| @@ -90,8 +90,8 @@ func main() { | ||||
| 		log.SetOutput(os.Stdout) | ||||
| 	} | ||||
|  | ||||
| 	if open && strings.HasPrefix(addr, "unix:") { | ||||
| 		log.Fatal("Cannot open ", addr, " in browser") | ||||
| 	if open && strings.ContainsRune(addr, os.PathSeparator) { | ||||
| 		log.Fatal("Cannot open unix socket path (", addr, ") in browser") | ||||
| 	} | ||||
|  | ||||
| 	if db == "" { | ||||
|   | ||||
| @@ -13,9 +13,9 @@ The latest prebuilt binaries for Linux/MacOS/Windows are available | ||||
| [here](https://github.com/nkanaev/yarr/releases/latest). | ||||
| The archives follow the naming convention `yarr_{OS}_{ARCH}[_gui].zip`, where: | ||||
|  | ||||
| * `OS` is the target operating system | ||||
| * `ARCH` is the CPU architecture (`arm64` for AArch64, `amd64` for X86-64) | ||||
| * `-gui` indicates that the binary ships with the GUI (tray icon), and is a command line application if omitted | ||||
| * `OS` corresponds to the target operating system (darwin/linux/windows for Linux, MacOS, Windows, respectively) | ||||
| * `ARCH` is the CPU architecture (`arm64` for AMD64/Aarch64, `amd64` for X86-64) | ||||
| * `-gui` indicates that the application ships with the GUI (tray icon), and is a command line application if omitted | ||||
|  | ||||
| Usage instructions: | ||||
|  | ||||
|   | ||||
| @@ -56,19 +56,16 @@ func (s *Server) Start() { | ||||
| 		s.worker.RefreshFeeds() | ||||
| 	} | ||||
|  | ||||
| 	var ln net.Listener | ||||
| 	var err error | ||||
|  | ||||
| 	if path, isUnix := strings.CutPrefix(s.Addr, "unix:"); isUnix { | ||||
| 		err = os.Remove(path) | ||||
| 	network := "tcp" | ||||
| 	if strings.ContainsRune(s.Addr, os.PathSeparator) { | ||||
| 		network = "unix" | ||||
| 		err := os.Remove(s.Addr) | ||||
| 		if err != nil { | ||||
| 			log.Print(err) | ||||
| 			log.Fatal(err) | ||||
| 		} | ||||
| 		ln, err = net.Listen("unix", path) | ||||
| 	} else { | ||||
| 		ln, err = net.Listen("tcp", s.Addr) | ||||
| 	} | ||||
|  | ||||
| 	ln, err := net.Listen(network, s.Addr) | ||||
| 	if err != nil { | ||||
| 		log.Fatal(err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user