Commit Graph

101 Commits

Author SHA1 Message Date
Yuhui Xu
a64d839e2c frontend: limit fetched response size to 64KB (#39) 2021-09-02 20:21:28 -05:00
James Lu
1a3c618522 frontend: BGPmap improvements (#36)
* bgpmap: Compact nexthop info into an edge label

* bgpmap: parse and show non-BGP routes

* bgpmap: Misc tweaks

- Show the protocol name instead of the ASN in edge labels
- Correctly draw only the primary path if there are multiple routes to the first neighbour ASN in a path
- Use a smaller font size for edge labels

* bgpmap_test: update to match new changes

* bgpmap: Split route info on all (non-empty) rta_dest_names values
2021-08-31 09:44:14 -05:00
Yuhui Xu
823b639245 frontend: also filter whois privacy redacted lines (#34) 2021-08-28 22:02:03 -05:00
Yuhui Xu
b0c0e5442d frontend: set lgproxy request timeout to 120s (#31)
lgproxy traceroutecan be really slow if dns resolve doesnt work well.
2021-08-04 00:30:38 +08:00
Yuhui Xu
4e4ce89418 frontend: set timeout longer for lgproxy requests (#30) 2021-08-03 11:46:05 +08:00
Yuhui Xu
234aadadd9 frontend: specify timeout for requests (#29) 2021-08-02 18:46:43 +08:00
Lan Tian
bee26f421c frontend: resolve asn in dns/whois/fail order & fix tests 2021-07-31 17:11:20 +08:00
Josef Miegl
4c248c638a frontend: optional asn resolution using whois 2021-07-30 16:54:41 +02:00
Simon Marsh
256a80646f - Refactor file embedding to use Go 1.16 embed functionality.
- Remove references to previous bindata packages from build scripts and docs
2021-07-13 11:54:35 +01:00
Lan Tian
5e0bc081e6 frontend: allow long lines if result is short 2021-06-21 00:57:26 +08:00
Lan Tian
5883015294 frontend: change behavior of whois shorten mode 2021-06-21 00:44:44 +08:00
Lan Tian
41329da7cb frontend: add generic whois shorten mode 2021-06-20 02:20:18 +08:00
Lan Tian
6a8b3a0e55 frontend: fix typo 2021-06-19 16:36:18 +08:00
Lan Tian
7c7814cc7b frontend: limit telegram commands by bot name 2021-06-19 16:23:43 +08:00
Henri
de9d9101b1 Fix test initialization so that tests succeed after previous commit 2021-04-14 09:17:44 +02:00
Henri
056ef3769e Allow specifying display names for servers 2021-04-13 21:58:50 +02:00
Henri
874089117b Increase consistency of path escaping and support IPv6 addresses instead of hostnames 2021-04-06 21:43:58 +02:00
Aluísio Augusto Silva Gonçalves
f81a5308ae frontend: make domain optional
Making the domain optional allows usage of bare hostnames for
the servers (e.g. when they're statically configured) and even
IP addresses if someone is so inclined (although presentation
might suffer in this case).
2021-03-31 16:44:44 -03:00
Lan Tian
5b5a09ccbd frontend: clamp telegram api response to 4096 chars 2021-03-31 22:43:46 +08:00
Lan Tian
dc4d7e6532 general: update makefiles for project 2021-03-15 00:49:13 +08:00
Lan Tian
4413f1032f general: try to fix multiarch build 2021-03-06 21:21:42 +08:00
Lan Tian
f6ddc5761b frontend: remove unnecessary URL escapes 2021-02-27 15:24:21 +08:00
Lan Tian
6cc0c617b4 frontend: add API for server list 2021-01-17 16:16:41 +08:00
Lan Tian
e2cc580da3 frontend: add CORS header to API 2021-01-17 12:45:20 +08:00
Lan Tian
da2c3d9aed frontend: add API 2021-01-17 12:35:29 +08:00
Lan Tian
a984095282 frontend: add tests against XSS 2021-01-17 02:21:23 +08:00
Lan Tian
1baf325149 frontend: move redirect logic to HTML 2021-01-17 01:33:14 +08:00
Lan Tian
72946e1113 frontend: filter output to prevent XSS 2021-01-17 01:14:49 +08:00
Simon Marsh
f4b6955343 Add utility functions for filtering results and rename templates 2021-01-12 10:21:03 +00:00
Simon Marsh
78ce724171 Fix bindata build step and parameterize docker build 2021-01-12 10:21:02 +00:00
Simon Marsh
6179c688be - Use bindata to package static file content in to the frontend binary
- Add golang templates to move HTML rendering out of the go code where possible
- Add an endpoint for serving static files
- Add URL escaping for servers and targets
2021-01-11 15:00:05 +00:00
Lan Tian
8d0e210572 Fix #7 2021-01-11 22:24:15 +08:00
Lan Tian
5000ad1bbf general: add s390x & ppc64le 2020-11-07 20:24:37 +08:00
Lan Tian
9e77de6b46 frontend: scratch-based docker image 2020-11-07 20:06:07 +08:00
Lan Tian
3bcfc3d36c Remove BIRDv1 support 2020-10-30 23:10:03 +08:00
Lan Tian
0216365551 frontend: improve robustness handling errors 2020-10-27 22:59:11 +08:00
Arnie97
7f5ea89a14 fix navbar for mobile devices 2020-08-16 21:20:23 +08:00
Lan Tian
437587b90a frontend: disallow search engine crawling 2020-08-15 20:26:16 +08:00
Arnie97
2a928f71ae fix: show fractions of a second in the correct column 2020-08-02 14:49:38 +08:00
Arnie97
7b1dc6718d frontend: support rebranding 2020-08-02 14:49:10 +08:00
Arnie97
6e4bbd6410 frontend: replace non-standard xhtml mix with html5 2020-08-02 14:48:58 +08:00
Arnie97
20b1233ec8 frontend: apply go fmt 2020-08-02 14:48:47 +08:00
Lan Tian
862e2aca7a frontend: fix telegram bot responding to non-commands 2020-07-10 20:56:37 +08:00
Lan Tian
9fc5076681 frontend: fix empty result bug 2020-07-10 00:12:02 +08:00
Lan Tian
c617ae4e0a frontend: for DN42, filter more weird whois prefixes 2020-07-10 00:10:36 +08:00
Lan Tian
f2fbfed412 frontend: for DN42 also filter whois lines beginning with space 2020-07-10 00:03:19 +08:00
Lan Tian
fc098c7d50 frontend: improve empty result handling 2020-06-29 15:04:32 +08:00
Lan Tian
47d7168718 frontend: fix empty response handling 2020-06-29 13:50:56 +08:00
Lan Tian
721b3f6cc7 frontend: cleanup telegram replies 2020-06-29 13:44:48 +08:00
YumiLee
bed9fefef2 修复AS跳转到whois时的bug 2020-06-21 00:55:00 +08:00