Commit de14dffd authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/plugin: Set the RPC port range to the plugin port range

parent 9162819d
......@@ -42,6 +42,9 @@ func serve(server *rpc.Server) (err error) {
log.Printf("Plugin minimum port: %d\n", minPort)
log.Printf("Plugin maximum port: %d\n", maxPort)
// Set the RPC port range
packrpc.PortRange(int(minPort), int(maxPort))
var address string
var listener net.Listener
for port := minPort; port <= maxPort; port++ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment