Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
de14dffd
Commit
de14dffd
authored
Jun 11, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer/plugin: Set the RPC port range to the plugin port range
parent
9162819d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
packer/plugin/plugin.go
packer/plugin/plugin.go
+3
-0
No files found.
packer/plugin/plugin.go
View file @
de14dffd
...
...
@@ -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
++
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment