- If you want to build opa-iptables right away, you need a working Go environment. It requires Go version 1.12 and above.
$ git clone https://github.com/urvil38/chat-server.git
$ cd chat-server
$ make linux-build
$ make macos-build
$ make windows-build
In order to gernerate X509 self signed certificates run the cert.sh
script as following:
$ ./cert.sh [email protected] # which creates certs folder in current directory
Now start server and client as following:
$ ./bin/chat-server -addr 127.0.0.1 -p 8080
$ ./bin/chat-client -addr 127.0.0.1 -p 8080
You can configure address and port using
-addr
and-p
command line flags. You can configure certs dir using-cert
command line flag.