@@ -139,15 +139,16 @@ def transport_list
139
139
140
140
response . each ( TLV_TYPE_TRANS_GROUP ) { |t |
141
141
result [ :transports ] << {
142
- :url => t . get_tlv_value ( TLV_TYPE_TRANS_URL ) ,
143
- :comm_timeout => t . get_tlv_value ( TLV_TYPE_TRANS_COMM_TIMEOUT ) ,
144
- :retry_total => t . get_tlv_value ( TLV_TYPE_TRANS_RETRY_TOTAL ) ,
145
- :retry_wait => t . get_tlv_value ( TLV_TYPE_TRANS_RETRY_WAIT ) ,
146
- :ua => t . get_tlv_value ( TLV_TYPE_TRANS_UA ) ,
147
- :proxy_host => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_HOST ) ,
148
- :proxy_user => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_USER ) ,
149
- :proxy_pass => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_PASS ) ,
150
- :cert_hash => t . get_tlv_value ( TLV_TYPE_TRANS_CERT_HASH )
142
+ :url => t . get_tlv_value ( TLV_TYPE_TRANS_URL ) ,
143
+ :comm_timeout => t . get_tlv_value ( TLV_TYPE_TRANS_COMM_TIMEOUT ) ,
144
+ :retry_total => t . get_tlv_value ( TLV_TYPE_TRANS_RETRY_TOTAL ) ,
145
+ :retry_wait => t . get_tlv_value ( TLV_TYPE_TRANS_RETRY_WAIT ) ,
146
+ :ua => t . get_tlv_value ( TLV_TYPE_TRANS_UA ) ,
147
+ :proxy_host => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_HOST ) ,
148
+ :proxy_user => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_USER ) ,
149
+ :proxy_pass => t . get_tlv_value ( TLV_TYPE_TRANS_PROXY_PASS ) ,
150
+ :cert_hash => t . get_tlv_value ( TLV_TYPE_TRANS_CERT_HASH ) ,
151
+ :custom_headers => t . get_tlv_value ( TLV_TYPE_TRANS_HEADERS )
151
152
}
152
153
}
153
154
@@ -555,6 +556,7 @@ def migrate(target_pid, writable_dir = nil, opts = {})
555
556
# We cannot migrate into a process that we are unable to open
556
557
# On linux, arch is empty even if we can access the process
557
558
if client . platform == 'windows'
559
+
558
560
if target_process [ 'arch' ] == nil || target_process [ 'arch' ] . empty?
559
561
raise RuntimeError , "Cannot migrate into this process (insufficient privileges)" , caller
560
562
end
@@ -718,7 +720,8 @@ def negotiate_tlv_encryption
718
720
# Get a reference to the currently active transport.
719
721
#
720
722
def get_current_transport
721
- transport_list [ :transports ] [ 0 ]
723
+ x = transport_list
724
+ x [ :transports ] [ 0 ]
722
725
end
723
726
724
727
#
@@ -728,6 +731,7 @@ def get_current_transport
728
731
def generate_migrate_stub ( target_process )
729
732
stub = nil
730
733
734
+
731
735
if client . platform == 'windows' && [ ARCH_X86 , ARCH_X64 ] . include? ( client . arch )
732
736
t = get_current_transport
733
737
0 commit comments