mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-15 12:17:47 +00:00
Try unix socket by default in confetty
If the unix socket is available and nothing specified, try to use that
This commit is contained in:
parent
0d425f1f9f
commit
61f24ad789
@ -254,6 +254,8 @@ if opts.server: # going over a TLS network
|
||||
server = connect_tls_server(opts.server)
|
||||
elif opts.unixsock:
|
||||
server = connect_unix_server(opts.unixsock)
|
||||
elif os.path.exists("/var/run/confluent/api.sock"):
|
||||
server = connect_unix_server("/var/run/confluent/api.sock")
|
||||
|
||||
#Next stop, reading and writing from whichever of stdin and server goes first.
|
||||
#see pyghmi code for solconnect.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user