Ensure slashes are where they need to be

This commit is contained in:
Spencer McIntyre
2025-10-01 09:52:09 -04:00
parent 56d6498b41
commit dfd2160eef
+1 -1
View File
@@ -92,7 +92,7 @@ private
c2_tlv.add_tlv(MET::TLV_TYPE_C2_RETRY_WAIT, opts[:retry_wait])
url = "#{opts[:scheme]}://#{Rex::Socket.to_authority(lhost, opts[:lport])}"
url << "#{opts[:uri]}/" if opts[:uri]
url << "/#{opts[:uri].delete_prefix('/').delete_suffix('/')}/" if opts[:uri]
url << "?#{opts[:scope_id]}" if opts[:scope_id]
c2_tlv.add_tlv(MET::TLV_TYPE_C2_URL, url)