mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Implement socket I/O
This commit is contained in:
@@ -20,7 +20,7 @@ func Cut(s string, sep string) (string, string, bool) {
|
||||
func ParseSocketAddress(spec string) (network string, addr string, err error) {
|
||||
network, addr, found := Cut(spec, ":")
|
||||
if !found {
|
||||
err = fmt.Errorf("Invalid socket address: %s", spec)
|
||||
err = fmt.Errorf("Invalid socket address: %s must be prefix by a protocol such as unix:", spec)
|
||||
return
|
||||
}
|
||||
if network == "unix" {
|
||||
|
||||
Reference in New Issue
Block a user