Prepend GO path
parent
8dc974b51e
commit
a80ac67373
|
@ -202,7 +202,7 @@ class Msf::Modules::External::GoBridge < Msf::Modules::External::Bridge
|
|||
def initialize(module_path, framework: nil)
|
||||
super
|
||||
gopath = ENV['GOPATH'] || ''
|
||||
self.env = self.env.merge({ 'GOPATH' => gopath + File::PATH_SEPARATOR + File.expand_path('../go', __FILE__) })
|
||||
self.env = self.env.merge({ 'GOPATH' => File.expand_path('../go', __FILE__) + File::PATH_SEPARATOR + gopath})
|
||||
self.cmd = ['go', 'run', self.path]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue