Skip to content

New UI, automatic reconnects

Latest
Compare
Choose a tag to compare
@MarcPer MarcPer released this 28 Apr 09:15
· 1 commit to main since this release

Several improvements were done in this version:

PR 1:

  • new UI with tview. Now the input doesn't interfere with text from incoming messages, and generally the terminal UI is handled better all around (e.g. window resizing).
  • Host scanning now doesn't rely on the arp UNIX command, and is implemented instead purely in Go. Besides better portability, this makes the scan more reliable, as hosts can't be always foudn in the ARP cache.
  • Some unit tests were added, together with Github flow automated testing
  • Config files can be used to run lanchat, to avoid having to always type the command line flags. Note that the config file path needs to be specified through the --config (or -c) flag though, as lanchat doesn't assume any location for it. A reasonable approach is to define an alias such as:
    alias lanchat=<path-to-lanchat> --config <path-to-config>
    
    Of course using an alias, you could just as well add the flags you need there, without resorting to the config file, but changing the config file is easier than redefining the alias 🙂 .

PR 3:

  • All peers ping each other. If non-host peers notice the host is down, they try to become a host. See the pull request description for some caveats.