develop #3

Merged
glenux merged 35 commits from develop into master 2024-06-02 07:08:41 +00:00
Showing only changes of commit a007211e29 - Show all commits

View file

@ -1,6 +1,7 @@
require "path"
require "file_utils"
require "socket"
require "./module"
require "./config"
@ -38,7 +39,12 @@ module DocMachine::Build
end
private def _port_available?(port)
true
sock = Socket.new(Socket::Family::INET, Socket::Type::STREAM)
sock.bind(Socket::IPAddress.new("0.0.0.0", port))
sock.close
return true
rescue ex : Socket::BindError
return false
end
private def _avoid_duplicates