File tree Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,15 @@ import { getReadableIP } from '../../model/network';
7
7
import { RawTunnel } from '../../model/raw-tunnel' ;
8
8
import { UiStore } from '../../model/ui/ui-store' ;
9
9
10
+ import { formatDuration } from '../../util/text' ;
11
+ import { getReadableSize } from '../../util/buffer' ;
12
+
10
13
import { MediumCard } from '../common/card' ;
14
+
11
15
import { ContentLabelBlock , Content , CopyableMonoValue } from '../common/text-content' ;
12
16
import { PaneScrollContainer } from './view-details-pane' ;
13
17
import { StreamMessageListCard } from './stream-message-list-card' ;
14
18
import { SelfSizedEditor } from '../editor/base-editor' ;
15
- import { formatDuration } from '../../util/text' ;
16
19
17
20
@inject ( 'uiStore' )
18
21
@observer
@@ -39,7 +42,7 @@ export class RawTunnelDetailsPane extends React.Component<{
39
42
cardHeading = 'Raw Data'
40
43
streamLabel = { tunnel . upstreamHostname }
41
44
editorNode = { this . props . streamMessageEditor }
42
- filenamePrefix = { `Raw Tunnel ${ tunnel . upstreamHostname } ${ tunnel . id } ` }
45
+ filenamePrefix = { `Raw Tunnel ${ tunnel . upstreamHostname } ${ tunnel . upstreamPort } ${ tunnel . id } ` }
43
46
messages = { tunnel . packets }
44
47
/> ;
45
48
Original file line number Diff line number Diff line change @@ -66,13 +66,15 @@ export const StreamMessageCollapsedRow = React.memo((p: {
66
66
)
67
67
}
68
68
</ CollapsedStreamContent >
69
- {
70
- p . message . isBinary &&
71
- < Pill color = { warningColor } > Binary</ Pill >
72
- }
73
- < Pill >
74
- { getReadableSize ( p . message . content . byteLength ) }
75
- </ Pill >
69
+ < RowTags >
70
+ {
71
+ p . message . isBinary &&
72
+ < Pill color = { warningColor } > Binary</ Pill >
73
+ }
74
+ < Pill >
75
+ { getReadableSize ( p . message . content . byteLength ) }
76
+ </ Pill >
77
+ </ RowTags >
76
78
</ CollapsedStreamRowContainer > ) ;
77
79
78
80
const MessageArrow = styled ( React . memo ( ( p : {
@@ -141,6 +143,12 @@ const CollapsedStreamContent = styled(ContentMonoValue)`
141
143
padding: 3px 0 4px;
142
144
` ;
143
145
146
+ const RowTags = styled . div `
147
+ display: flex;
148
+ gap: 8px;
149
+ flex-direction: row;
150
+ ` ;
151
+
144
152
interface MessageEditorRowProps {
145
153
streamId : string ,
146
154
message : StreamMessage ,
Original file line number Diff line number Diff line change @@ -724,7 +724,9 @@ const RawTunnelRow = observer((p: {
724
724
} ) => {
725
725
const { event } = p ;
726
726
727
- const connectionTarget = event . upstreamHostname || 'unknown domain' ;
727
+ const connectionTarget = event . upstreamHostname
728
+ ? `${ event . upstreamHostname } :${ event . upstreamPort } `
729
+ : 'unknown destination' ;
728
730
729
731
return < TlsListRow
730
732
role = "row"
You can’t perform that action at this time.
0 commit comments